My Preferred ESLint Rules.
$ npm install --save-dev eslint eslint-config-milad
Once the eslint-config-milad
package is installed, you can use it by specifying milad
in the extends
section of your ESLint configuration.
{
"extends": "milad",
"rules": {}
}
{
"extends": ["eslint:recommended", "milad"],
"rules": {}
}
How I put my rules in a repository that can be used by all my projects, is inspired by how Google did it.