Skip to content

Commit 22bf2bd

Browse files
committedJan 25, 2025
feat: add fixStyle to ts/consistent-type-imports
1 parent 2061adb commit 22bf2bd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/configs/imports.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export async function imports(options: OptionsStylistic = {}): Promise<TypedFlat
1919
'antfu/no-import-dist': 'error',
2020
'antfu/no-import-node-modules-by-path': 'error',
2121

22+
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
2223
'import/first': 'error',
2324
'import/no-duplicates': 'error',
2425
'import/no-mutable-exports': 'error',

‎src/configs/typescript.ts

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export async function typescript(
135135
'ts/consistent-type-definitions': ['error', 'interface'],
136136
'ts/consistent-type-imports': ['error', {
137137
disallowTypeAnnotations: false,
138+
fixStyle: 'separate-type-imports',
138139
prefer: 'type-imports',
139140
}],
140141

0 commit comments

Comments
 (0)
Please sign in to comment.