16.0.1 • Published 6 years ago

eslint-config-anvilabs v16.0.1

Weekly downloads
50
License
MIT
Repository
github
Last release
6 years ago

eslint-config-anvilabs

Version Dependency Status devDependency Status

Anvilabs' base ESLint config. Makes use of prettier for formatting.

Usage

This config relies dangerously on npm@3/yarn flatter tree for its dependencies (because of eslint/issues/3458), so installation may be as simple as:

$ yarn add eslint prettier eslint-config-anvilabs --dev
# or
$ npm install eslint prettier eslint-config-anvilabs --save-dev

Then add the extends to your .eslintrc.js:

module.exports = {
  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:

module.exports = {
  extends: 'anvilabs/<config-name>',
};

Or in combination with the base config (recommended):

module.exports = {
  extends: ['anvilabs', 'anvilabs/<config-name>'],
};

You can also use ESLint@4 overrides to apply a config only to certain files. For example:

module.exports = {
  ...
  overrides: [
    Object.assign(
      {
        files: ['**/__tests__/*-test.js', '**/__mocks__/*.js'],
      },
      require('eslint-config-anvilabs/jest')
    ),
  ],
};

Available configs include:

Things to know

  • 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.

License

MIT License © Anvilabs LLC

16.0.1

6 years ago

16.0.0

7 years ago

15.1.1

7 years ago

15.1.0

7 years ago

15.0.0

7 years ago

14.0.0

7 years ago

13.0.0

7 years ago

12.0.1

7 years ago

12.0.0

7 years ago

11.0.0

7 years ago

10.2.0

7 years ago

10.1.0

7 years ago

10.0.1

7 years ago

10.0.0

7 years ago

9.2.0

7 years ago

9.1.1

7 years ago

9.1.0

7 years ago

9.0.0

7 years ago

8.2.1

7 years ago

8.2.0

7 years ago

8.1.0

7 years ago

8.0.1

7 years ago

8.0.0

7 years ago

7.1.0

7 years ago

7.0.0

7 years ago

6.2.3

7 years ago

6.2.2

7 years ago

6.2.1

7 years ago

6.2.0

7 years ago

6.1.0

7 years ago

6.0.0

7 years ago

5.2.0

7 years ago

5.1.0

7 years ago

5.0.0

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.6.3

8 years ago

1.6.2

8 years ago

1.6.1

8 years ago

1.6.0

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago