Custom rules for node.js projects
npm install eslint-plugin-customCustom rules for node.js projects
You'll first need to install ESLint:
```
$ npm i eslint --save-dev
Next, install eslint-plugin-custom:
``
$ npm install eslint-plugin-custom --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-custom globally.
Add custom to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": [
"custom"
]
}
Then configure the rules you want to use under the rules section.
`json``
{
"rules": {
"custom/log": 2
}
}
* log