From 96c2990c2a2f907e8ea48b548cbdbde59671ae50 Mon Sep 17 00:00:00 2001 From: Jeffrey Lau Date: Fri, 18 Aug 2023 15:46:53 +0800 Subject: [PATCH] chore(lint): Add rules to aid fixing of import type issues --- .eslintrc.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index c4dba7ed..3f074a46 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -120,7 +120,15 @@ var rules = { 'no-empty-function' : 'off', 'react/prop-types' : 'off', 'react/no-unknown-property' : ['error', { ignore : ['css'] }], + '@typescript-eslint/consistent-type-imports' : [ + 'error', + { + prefer: 'type-imports', + fixStyle: 'separate-type-imports', + } + ], '@typescript-eslint/no-empty-function' : 'off', + '@typescript-eslint/no-import-type-side-effects': 'error', '@typescript-eslint/no-non-null-asserted-nullish-coalescing' : 'warn', 'no-unused-vars' : 'off', '@typescript-eslint/no-unused-vars' : 'warn',