eslint-complexity
npm install eslint-plugin-code-complexityeslint-complexity
You'll first need to install ESLint:
```
$ npm i eslint --save-dev
Next, install eslint-plugin-code-complexity:
``
$ npm install eslint-plugin-code-complexity --save-dev
Add code-complexity to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": [
"code-complexity"
]
}
Then configure the rules you want to use under the rules section.
`json``
{
"rules": {
"code-complexity/rule-name": 2
}
}
* Fill in provided rules here