Skip to content

Detect functions with too many parameters without the constructor

Notifications You must be signed in to change notification settings

paulomenezes/max-params-no-constructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-dev

or if you use yarn

$ yarn add eslint -D

Next, install eslint-plugin-max-params-no-constructor:

$ npm install eslint-plugin-max-params-no-constructor --save-dev

or

$ yarn add eslint-plugin-max-params-no-constructor -D

Usage

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]
  }
}

About

Detect functions with too many parameters without the constructor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published