@methodgrab/eslint-config-standard
v0.10.0
Published
ESLint config
Downloads
5
Maintainers
Readme
eslint-config-standard
My ESLint shareable config.
Install
npm install --save-dev @methodgrab/eslint-config-standard
For esnext
with certain non-finalised features babel-eslint
will be needed as well:
npm install --save-dev @methodgrab/eslint-config-standard babel-eslint
For react
:
npm install --save-dev @methodgrab/eslint-config-standard babel-eslint eslint-plugin-react
For ava
:
npm install --save-dev @methodgrab/eslint-config-standard eslint-plugin-ava
Usage
Extend it in your .eslintrc.js
module.exports = {
extends : [
'@methodgrab/standard',
],
rules : {
// override shared config rules
},
};
The default ESLint parser has good support for ES2015+ built in. The babel-eslint
parser is only required if your code includes certain non-finalised features.
module.exports = {
extends : [
'@methodgrab/standard',
'@methodgrab/standard/esnext',
],
parser : 'babel-eslint',
rules : {},
};
You can override settings from the shared config by adding them directly into your .eslintrc.js
config.
Additional Configs
strict
- less relaxedesnext
- ES2015 (ES6)+react
-esnext
+ React.js rulesava
-esnext
+ AVA rulesbrowser
- browser envlegacy
-browser
+ ES3
Example:
module.exports = {
extends : [
'@methodgrab/standard',
'@methodgrab/standard/esnext',
]
};