eslint-settings
v3.1.0
Published
Custom maintained style settings for ESLint.
Downloads
14
Readme
eslint-settings
These are custom ESLint settings for Angular and Node.js. The settings are quite strict.
Usage
npm install -D eslint-settings
Now, create a file called .eslintrc
in the root of your project with the following contents:
{
"env": {
"node": true // example, for node
},
"extends": "./node_modules/eslint-settings/main.eslintrc" // this line is important
}
Various ESLint Configs
main.eslintrc
: The primary config file.test.eslintrc
: A config file for test files. It disables some rules that are enabled inmain.eslintrc
that are not appropriate for test files.
Customization
You can add your own rules, turn off rules, or change things around in other ways.
Modify the .eslintrc
file you created the same way you would if you weren't using this package!
Just make sure not to delete the "extends": "./node_modules/eslint-settings/main.eslintrc"
.