README
eslint-plugin-closuredepth
This project is no longer maintained
Eslint plugin in order to provide warnings closure depth, and you can avoid the associated performance penalties
Installation
Install ESLint either locally or globally.
$ npm install eslint
If you installed ESLint
globally, you have to install the closuredepth plugin globally too. Otherwise, install it locally.
$ npm install eslint-plugin-closuredepth
Configuration
Add plugins
section and specify ESLint-plugin-closuredepth as a plugin.
{
"plugins": [
"closuredepth"
]
}
Add the rule, where 'limit' is your desired maximum depth
{
"rules": {
"closuredepth/closuredepth": [ 2, { "limit": 3 } ]
}
}
License
ESLint-plugin-closuredepth is licensed under the MIT License.