Skip to content

Commit

Permalink
feat!: @typescript-eslint/max-params
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jul 19, 2024
1 parent 8de17b4 commit a97fa9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 0 additions & 2 deletions src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a97fa9e

Please sign in to comment.