Skip to main content


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.

How to Use

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 ↗


See eslint/max-params options.


Taken with ❤️ from ESLint core