1.0.2 • Published 6 years ago
eslint-plugin-closuredepth v1.0.2
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 eslintIf you installed ESLint globally, you have to install the closuredepth plugin globally too. Otherwise, install it locally.
$ npm install eslint-plugin-closuredepthConfiguration
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.