Skip to content

Commit

Permalink
feat: add fixStyle to ts/consistent-type-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 25, 2025
1 parent 2061adb commit 22bf2bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/configs/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function imports(options: OptionsStylistic = {}): Promise<TypedFlat
'antfu/no-import-dist': 'error',
'antfu/no-import-node-modules-by-path': 'error',

'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'import/first': 'error',
'import/no-duplicates': 'error',
'import/no-mutable-exports': 'error',
Expand Down
1 change: 1 addition & 0 deletions src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export async function typescript(
'ts/consistent-type-definitions': ['error', 'interface'],
'ts/consistent-type-imports': ['error', {
disallowTypeAnnotations: false,
fixStyle: 'separate-type-imports',
prefer: 'type-imports',
}],

Expand Down

0 comments on commit 22bf2bd

Please # to comment.