Skip to content

Commit 061f585

Browse files
authored
feat(rules): disable "no-duplicate-imports" (#28)
1 parent b79a218 commit 061f585

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/rules/eslint/possible-problems.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export = {
2020
'no-dupe-else-if': 'error',
2121
'no-dupe-keys': 'error',
2222
'no-duplicate-case': 'error',
23-
'no-duplicate-imports': 'error',
23+
// handled by "import/no-duplicates"
24+
'no-duplicate-imports': 'off',
2425
'no-empty-character-class': 'error',
2526
'no-empty-pattern': 'error',
2627
'no-ex-assign': 'error',

src/rules/typescript/extensions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export = {
2323
// https://typescript-eslint.io/rules/no-array-constructor
2424
'@typescript-eslint/no-array-constructor': 'error',
2525
'@typescript-eslint/no-dupe-class-members': possibleProblems['no-dupe-class-members'],
26-
'@typescript-eslint/no-duplicate-imports': possibleProblems['no-duplicate-imports'],
26+
// Deprecated in favor of "import/no-duplicates"
27+
'@typescript-eslint/no-duplicate-imports': 'off',
2728
'@typescript-eslint/no-empty-function': suggestions['no-empty-function'],
2829
'@typescript-eslint/no-extra-parens': layoutFormatting['no-extra-parens'],
2930
'@typescript-eslint/no-extra-semi': suggestions['no-extra-semi'],

0 commit comments

Comments
 (0)