0.0.4 • Published 5 years ago
eslint-plugin-max-params-no-constructor v0.0.4
eslint-plugin-max-params-no-constructor
Detect functions with too many parameters without the constructor
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devor if you use yarn
$ yarn add eslint -DNext, install eslint-plugin-max-params-no-constructor:
$ npm install eslint-plugin-max-params-no-constructor --save-devor
$ yarn add eslint-plugin-max-params-no-constructor -DUsage
Add max-params-no-constructor to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["max-params-no-constructor"],
"rules": {
"max-params-no-constructor/max-params-no-constructor": ["error", 5]
}
}