Skip to content

Commit

Permalink
feat!: no-console
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jan 11, 2025
1 parent a10d87a commit b34a7df
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/plugin-usage/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down
1 change: 1 addition & 0 deletions src/test/_fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export const rulesToConsider: Record<string, string[]> = {
'eslint-comments': [],
'': [
'no-await-in-loop',
'no-console',
'no-div-regex',
'no-dupe-else-if',
'no-duplicate-imports',
Expand Down
1 change: 1 addition & 0 deletions src/test/expected-exported-value/_eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down

0 comments on commit b34a7df

Please sign in to comment.