From 9d2a404812f930ca76f254718c2503de175028a5 Mon Sep 17 00:00:00 2001 From: Andrey Mikheychik Date: Sun, 31 Dec 2023 16:02:33 -0600 Subject: [PATCH] Disable the `no-duplicate-imports` rule Use `import/no-duplicates` instead. --- src/rules/eslint/possible-problems.ts | 3 ++- src/rules/typescript-eslint/extension-rules.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/eslint/possible-problems.ts b/src/rules/eslint/possible-problems.ts index 2a2b854..89d8aec 100644 --- a/src/rules/eslint/possible-problems.ts +++ b/src/rules/eslint/possible-problems.ts @@ -24,7 +24,8 @@ export = { 'no-dupe-else-if': 'error', 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', - 'no-duplicate-imports': ['error', { + // Use `import/no-duplicates`. + 'no-duplicate-imports': ['off', { includeExports: true, }], 'no-empty-character-class': 'error', diff --git a/src/rules/typescript-eslint/extension-rules.ts b/src/rules/typescript-eslint/extension-rules.ts index 58b703e..d138b16 100644 --- a/src/rules/typescript-eslint/extension-rules.ts +++ b/src/rules/typescript-eslint/extension-rules.ts @@ -94,7 +94,6 @@ export = { '@typescript-eslint/no-array-constructor': 'warn', 'no-dupe-class-members': 'off', '@typescript-eslint/no-dupe-class-members': 'error', - 'no-duplicate-imports': 'off', 'no-empty-function': 'off', '@typescript-eslint/no-empty-function': ['error', { allow: ['protected-constructors', 'private-constructors'],