diff --git a/src/index.ts b/src/index.ts index 269859ea..cbee20dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -127,6 +127,7 @@ const rules = { }, ], '@typescript-eslint/init-declarations': ['error', 'always'], + '@typescript-eslint/max-params': ['error', { max: 4 }], '@typescript-eslint/method-signature-style': ['error'], '@typescript-eslint/naming-convention': [ 'error', diff --git a/src/test/_expected-exported-value.ts b/src/test/_expected-exported-value.ts index 09454a1b..b6d80c1a 100644 --- a/src/test/_expected-exported-value.ts +++ b/src/test/_expected-exported-value.ts @@ -44,6 +44,7 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = { 'dot-notation': ['off'], eqeqeq: ['error', 'always', { null: 'ignore' }], 'init-declarations': ['off'], + 'max-params': ['off'], 'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }], 'no-array-constructor': ['off'], 'no-async-promise-executor': ['error'], @@ -284,6 +285,7 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = { }, ], '@typescript-eslint/init-declarations': ['error', 'always'], + '@typescript-eslint/max-params': ['error', { max: 4 }], '@typescript-eslint/method-signature-style': ['error'], '@typescript-eslint/naming-convention': [ 'error', diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index b120f326..eb08b9b8 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -1,6 +1,5 @@ export const rulesToConsider = [ '@typescript-eslint/explicit-module-boundary-types', - '@typescript-eslint/max-params', '@typescript-eslint/member-ordering', '@typescript-eslint/no-confusing-non-null-assertion', '@typescript-eslint/no-duplicate-enum-values', @@ -112,7 +111,6 @@ export const rulesToConsider = [ 'max-lines', 'max-lines-per-function', 'max-nested-callbacks', - 'max-params', 'max-statements', 'multiline-comment-style', 'n/callback-return',