2.0.0 • Published 7 years ago
@sullenor/eslint-config v2.0.0
eslint-config
The set of configuration files for ESLint.
Installation
yarn add @sullenor/eslint-config --devUsage
Create the .eslintrc.js file with the following content:
'use strict';
module.exports = {
extends: '@sullenor/eslint-config',
};or add eslintConfig field to the package.json:
{
"name": "<your project>",
"eslintConfig": {
"extends": "@sullenor/eslint-config"
}
}In case you use es6 imports, add the following parser options:
{
"parserOptions": {
"sourceType": "module"
}
}so it will be:
'use strict';
module.exports = {
parserOptions: {
sourceType: 'module',
},
extends: '@sullenor/eslint-config',
};License
The MIT License