Skip to content

Commit

Permalink
chore: type import 시 type keyword prefix 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 committed Jun 21, 2024
1 parent f654ca7 commit af3c9f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/eslint-config/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -50,6 +50,7 @@ module.exports = {
'warn',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'@typescript-eslint/consistent-type-imports': 'warn',
},
overrides: [{ files: ['*.js?(x)', '*.ts?(x)'] }],
};
3 changes: 2 additions & 1 deletion packages/eslint-config/react-internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -44,6 +44,7 @@ module.exports = {
'warn',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'@typescript-eslint/consistent-type-imports': 'warn',
},
overrides: [{ files: ['*.js?(x)', '*.ts?(x)'] }],
};

0 comments on commit af3c9f2

Please sign in to comment.