<commit_before># eslint-config-anvilabs

[![Build Status](https://img.shields.io/travis/anvilabs/eslint-config-anvilabs.svg)](https://travis-ci.org/anvilabs/eslint-config-anvilabs)
[![Version](https://img.shields.io/npm/v/eslint-config-anvilabs.svg)](http://npm.im/eslint-config-anvilabs)
[![Dependency Status](https://img.shields.io/david/anvilabs/eslint-config-anvilabs.svg)](https://david-dm.org/anvilabs/eslint-config-anvilabs)
[![devDependency Status](https://img.shields.io/david/dev/anvilabs/eslint-config-anvilabs.svg)](https://david-dm.org/anvilabs/eslint-config-anvilabs?type=dev)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
[![Commitizen Friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli)

Anvilabs' ESLint config, following our internal styleguide. Feel free to use these conventions :-)

## Usage

Install the conventions by running:

```bash
$ npm install --save-dev eslint eslint-config-anvilabs
```

Then add the extends to your `.eslintrc`:

```js
{
  "extends": "anvilabs",
  "rules": {
    // your overrides
  }
}
```

### Other configs

This config also exposes a few other configs that we use often and pull in as needed.

You can use them standalone:

```js
{
  "extends": "anvilabs/<config-name>"
}
```

Or in combination with the base config (recommended)

```js
{
  "extends": ["anvilabs", "anvilabs/<config-name>"]
}
```

### Things to know

- The default config opts to use the `eslint-plugin-babel` rules over the ESLint rules to enable the stage features that ESLint doesn't support.
- All plugins needed for rules used by these configs are dependencies of this module so you don't have to install anything on your own.<commit_msg>docs(readme): update following recent changes<commit_after># eslint-config-anvilabs

[![Build Status](https://img.shields.io/travis/anvilabs/eslint-config-anvilabs.svg)](https://travis-ci.org/anvilabs/eslint-config-anvilabs)
[![Version](https://img.shields.io/npm/v/eslint-config-anvilabs.svg)](http://npm.im/eslint-config-anvilabs)
[![Dependency Status](https://img.shields.io/david/anvilabs/eslint-config-anvilabs.svg)](https://david-dm.org/anvilabs/eslint-config-anvilabs)
[![devDependency Status](https://img.shields.io/david/dev/anvilabs/eslint-config-anvilabs.svg)](https://david-dm.org/anvilabs/eslint-config-anvilabs?type=dev)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
[![Commitizen Friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli)

Anvilabs' ESLint config, following our internal styleguide. Makes use of [prettier](https://github.com/jlongster/prettier) for formatting. 

## Usage

Install the conventions by running:

```bash
$ npm install --save-dev eslint prettier eslint-config-anvilabs
```

Then add the extends to your `.eslintrc.json`:

```js
{
  "extends": "anvilabs",
  "rules": {
    // your overrides
  }
}
```

### Other configs

This config also exposes a few other configs that we use often and pull in as needed.

You can use them standalone:

```js
{
  "extends": "anvilabs/<config-name>"
}
```

Or in combination with the base config (recommended)

```js
{
  "extends": ["anvilabs", "anvilabs/<config-name>"]
}
```

Available configs include:

- "anvilabs/flowtype" for [Flow](https://flowtype.org/) related rules
- "anvilabs/jest" for [Jest](https://facebook.github.io/jest/) related rules
- "anvilabs/lodash" for [Lodash](https://lodash.com/) related rules
- "anvilabs/react" for [React](https://facebook.github.io/react/) related rules
- "anvilabs/react-native" for [React Native](https://facebook.github.io/react-native/) related rules

### Things to know

- All plugins needed for rules used by these configs are dependencies of this module so you don't have to install anything on your own.
- Running ESLint will report an error if your code does not match prettier style. The rule is autofixable – if you run ESLint with the `--fix` flag, your code will be formatted according to prettier style.
{'fraction_non_alphanumeric': 0.15380986081623024, 'fraction_numerical': 0.0009436187780136825, 'mean_word_length': 4.848275862068966, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 26, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '548703', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1421, 'n_words': 325}