max-params
Enforce a maximum number of parameters in function definitions.
This rule extends the base eslint/max-params
rule.
This version adds support for TypeScript this
parameters so they won't be counted as a parameter.
Options
See eslint/max-params
options.
How to Use
.eslintrc.cjs
module.exports = {
"rules": {
// Note: you must disable the base rule as it can report incorrect errors
"max-params": "off",
"@typescript-eslint/max-params": "error"
}
};
Try this rule in the playground ↗