From af3c9f2a7364bf05190ae2d25c50cca587ebb406 Mon Sep 17 00:00:00 2001 From: semnil5202 Date: Fri, 21 Jun 2024 16:43:48 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20type=20import=20=EC=8B=9C=20type=20key?= =?UTF-8?q?word=20prefix=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/eslint-config/next.js | 3 ++- packages/eslint-config/react-internal.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config/next.js b/packages/eslint-config/next.js index 18c3ac82..0d5b8f47 100644 --- a/packages/eslint-config/next.js +++ b/packages/eslint-config/next.js @@ -10,7 +10,7 @@ module.exports = { require.resolve('@vercel/style-guide/eslint/next'), 'turbo', ], - plugins: ['only-warn', 'import'], + plugins: ['@typescript-eslint', 'only-warn', 'import'], globals: { React: true, JSX: true, @@ -50,6 +50,7 @@ module.exports = { 'warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }, ], + '@typescript-eslint/consistent-type-imports': 'warn', }, overrides: [{ files: ['*.js?(x)', '*.ts?(x)'] }], }; diff --git a/packages/eslint-config/react-internal.js b/packages/eslint-config/react-internal.js index d348b22d..97e4a38c 100644 --- a/packages/eslint-config/react-internal.js +++ b/packages/eslint-config/react-internal.js @@ -5,7 +5,7 @@ const project = resolve(process.cwd(), 'tsconfig.json'); /** @type {import("eslint").Linter.Config} */ module.exports = { extends: ['eslint:recommended', 'prettier', 'turbo'], - plugins: ['only-warn', 'import'], + plugins: ['@typescript-eslint', 'only-warn', 'import'], globals: { React: true, JSX: true, @@ -44,6 +44,7 @@ module.exports = { 'warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }, ], + '@typescript-eslint/consistent-type-imports': 'warn', }, overrides: [{ files: ['*.js?(x)', '*.ts?(x)'] }], };