diff --git a/src/plugin-usage/eslint.ts b/src/plugin-usage/eslint.ts index 4d4c757c..5d11dd5d 100644 --- a/src/plugin-usage/eslint.ts +++ b/src/plugin-usage/eslint.ts @@ -66,6 +66,7 @@ const usage: PluginUsage = { 'no-class-assign': ['error'], 'no-compare-neg-zero': ['error'], 'no-cond-assign': ['error'], + 'no-console': ['error'], 'no-const-assign': ['error'], 'no-constant-binary-expression': ['error'], 'no-constant-condition': ['error', { checkLoops: false }], diff --git a/src/test/_fixture.ts b/src/test/_fixture.ts index 1762b7a4..e4b98d37 100644 --- a/src/test/_fixture.ts +++ b/src/test/_fixture.ts @@ -33,6 +33,7 @@ export interface Boo { // Inline callbacks don't need return types: const ONE_MILLISECOND = 1 setTimeout(() => { + // eslint-disable-next-line no-console -- never executed console.log() }, ONE_MILLISECOND) diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index ce39f0e6..6d710c79 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': [], '': [ 'no-await-in-loop', - 'no-console', 'no-div-regex', 'no-dupe-else-if', 'no-duplicate-imports', diff --git a/src/test/expected-exported-value/_eslint.ts b/src/test/expected-exported-value/_eslint.ts index 913d57ca..c6e656af 100644 --- a/src/test/expected-exported-value/_eslint.ts +++ b/src/test/expected-exported-value/_eslint.ts @@ -66,6 +66,7 @@ export const expectedEslintRules: Record< 'no-class-assign': ['error'], 'no-compare-neg-zero': ['error'], 'no-cond-assign': ['error'], + 'no-console': ['error'], 'no-const-assign': ['error'], 'no-constant-binary-expression': ['error'], 'no-constant-condition': ['error', { checkLoops: false }],