From dbe1b40c7b32d4bc16501b32de96367be406fc47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sun, 21 Jan 2024 00:13:23 +0800 Subject: [PATCH] chore: enable no-duplicate-imports --- .eslintrc.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index a1c3ee47..b3e4ba32 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -13,6 +13,7 @@ module.exports = { 'no-debugger': 'error', 'no-console': ['error', { allow: ['warn', 'error', 'info', 'clear'] }], 'sort-imports': ['error', { ignoreDeclarationSort: true }], + 'no-duplicate-imports': 'error', // This rule enforces the preference for using '@ts-expect-error' comments in TypeScript // code to indicate intentional type errors, improving code clarity and maintainability.