eslint-config-elao
v0.1.0
Published
Elao ESLint configuration
Maintainers
Readme
eslint-config-elao
Elao ESLint configuration
A configurable ESLint configuration used in Elao projects.
Installation
The config require the eslint package.
$ npm install --save-dev eslint eslint-config-elaoUsage
Create a .eslintrc file with this following configuration:
{
"extends": "eslint-config-elao"
}Then run the following command:
$ eslint "path/to/**/*.js"Extending the config
Add a "rules" key to your config and add your overrides rules there.
For example, to change the indentation from 2 spaces to 4 and turn off the number-leading-zero rule:
{
"extends": "eslint-config-elao",
"rules": {
"indentation": 4,
"number-leading-zero": null
}
}