diff --git a/src/plugin-usage/eslint.ts b/src/plugin-usage/eslint.ts index 26460602..98e5b07a 100644 --- a/src/plugin-usage/eslint.ts +++ b/src/plugin-usage/eslint.ts @@ -53,6 +53,11 @@ const usage: PluginUsage = { // eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus 150 { max: 450, skipBlankLines: true, skipComments: true }, ], + 'max-nested-callbacks': [ + 'error', + // eslint-disable-next-line @typescript-eslint/no-magic-numbers -- arbitrary value + { max: 3 }, + ], 'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }], 'no-async-promise-executor': ['error'], 'no-caller': ['error'], diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index e0dd6028..9541e12a 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -2,7 +2,6 @@ export const rulesToConsider: Record = { 'eslint-comments': [], '': [ 'max-lines-per-function', - 'max-nested-callbacks', 'max-statements', 'no-alert', 'no-await-in-loop', diff --git a/src/test/expected-exported-value/_eslint.ts b/src/test/expected-exported-value/_eslint.ts index b8be1229..4e54b0c7 100644 --- a/src/test/expected-exported-value/_eslint.ts +++ b/src/test/expected-exported-value/_eslint.ts @@ -53,6 +53,11 @@ export const expectedEslintRules: Record< // eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus 150 { max: 450, skipBlankLines: true, skipComments: true }, ], + 'max-nested-callbacks': [ + 'error', + // eslint-disable-next-line @typescript-eslint/no-magic-numbers -- arbitrary value + { max: 3 }, + ], 'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }], 'no-async-promise-executor': ['error'], 'no-caller': ['error'],