eslint-config
Set of ESLint shareable config.
Installation
$ npm install --save-dev eslint @metahub/eslint-config
Usage
Once the @metahub/eslint-config
package is installed, you can use it by specifying the different configs in the extends
section of your ESLint configuration.
{
extends: [
'@metahub/eslint-config/es6-config',
'@metahub/eslint-config/node-config',
'@metahub/eslint-config/prettier-config',
],
rules: {
}
}
Config files
Name | Description | Extends |
---|
@metahub | Base/generic configuration | |
@metahub/eslint-config/jasmine-config | Rules specific to Jasmine | @metahub |
@metahub/eslint-config/import-config | Rules related to ECMAScript 2015 and Node imports | @metahub |
@metahub/eslint-config/node-config | Rules specific to Node JS | @metahub , import-config |
@metahub/eslint-config/es6-config | Rules specific to ECMAScript 2015 | @metahub , import-config |
@metahub/eslint-config/ava-config | Rules specific to AVA | @metahub , es6-config |
@metahub/eslint-config/promise-config | Rules specific to Promises | @metahub , es6-config |
@metahub/eslint-config/async-config | Rules specific to async/await | @metahub , promise-config |
@metahub/eslint-config/prettier-config | To be added last in the extends array when using prettier. Adds eslint-plugin-prettier and eslint-config-prettier | |