Skip to content

Commit

Permalink
feat: rm no-redeclare
Browse files Browse the repository at this point in the history
closes #1514
  • Loading branch information
mightyiam committed Oct 13, 2024
1 parent 792330e commit 35180f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/_intentionally-unused-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export const intentionallyUnusedRules: string[] = [
// Covered by strict TypeScript
'@typescript-eslint/no-invalid-this',

// Covered by TypeScript
'no-redeclare',
'@typescript-eslint/no-redeclare',

// ## Project specific

'@typescript-eslint/no-restricted-imports',
Expand Down
1 change: 0 additions & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': ['error'],
'@typescript-eslint/no-non-null-asserted-optional-chain': ['error'],
'@typescript-eslint/no-non-null-assertion': ['error'],
'@typescript-eslint/no-redeclare': ['error', { builtinGlobals: false }],
'@typescript-eslint/no-redundant-type-constituents': ['error'],
'@typescript-eslint/no-require-imports': [
'error',
Expand Down
2 changes: 0 additions & 2 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const expectedEslintRules: Record<
'no-octal-escape': ['error'],
'no-proto': ['error'],
'no-prototype-builtins': ['error'],
'no-redeclare': ['off'],
'no-regex-spaces': ['error'],
'no-return-assign': ['error', 'except-parens'],
'no-self-assign': ['error', { props: true }],
Expand Down Expand Up @@ -328,7 +327,6 @@ export const expectedTseslintRules: Record<
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': ['error'],
'@typescript-eslint/no-non-null-asserted-optional-chain': ['error'],
'@typescript-eslint/no-non-null-assertion': ['error'],
'@typescript-eslint/no-redeclare': ['error', { builtinGlobals: false }],
'@typescript-eslint/no-redundant-type-constituents': ['error'],
'@typescript-eslint/no-require-imports': [
'error',
Expand Down

0 comments on commit 35180f1

Please sign in to comment.