Skip to content

Commit

Permalink
feat!: max-depth with max: 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Dec 21, 2024
1 parent 33d4652 commit de0c1e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/plugin-usage/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const usage: PluginUsage = {
'always',
{ enforceForIfStatements: true },
],
// eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus one
'max-depth': ['error', { max: 5 }],
'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }],
'no-async-promise-executor': ['error'],
'no-caller': ['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 @@ -68,6 +68,8 @@ export const expectedEslintRules: Record<
'always',
{ enforceForIfStatements: true },
],
// eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus one
'max-depth': ['error', { max: 5 }],
'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }],
'no-async-promise-executor': ['error'],
'no-caller': ['error'],
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const rulesToConsider: Record<string, string[]> = {
'eslint-comments': [],
'': [
'max-depth',
'max-lines',
'max-lines-per-function',
'max-nested-callbacks',
Expand Down

0 comments on commit de0c1e5

Please sign in to comment.