Skip to content

Commit

Permalink
fix: configure @typescript-eslint/consistent-type-imports (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr9 authored Sep 24, 2024
1 parent eca3f4c commit a5fd41c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/typescript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export const typescript = [
'@typescript-eslint/array-type': ['error', { default: 'array-simple', readonly: 'generic' }],
'@typescript-eslint/restrict-template-expressions': ['error', { allowNullish: true }],
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/consistent-type-imports': [
'error',
{ prefer: 'type-imports', fixStyle: 'inline-type-imports' },
],
},
},
{
Expand Down

0 comments on commit a5fd41c

Please sign in to comment.