We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
antfu
Learn more about funding links in repositories.
Report abuse
fixStyle
ts/consistent-type-imports
1 parent 2061adb commit 22bf2bdCopy full SHA for 22bf2bd
src/configs/imports.ts
@@ -19,6 +19,7 @@ export async function imports(options: OptionsStylistic = {}): Promise<TypedFlat
19
'antfu/no-import-dist': 'error',
20
'antfu/no-import-node-modules-by-path': 'error',
21
22
+ 'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
23
'import/first': 'error',
24
'import/no-duplicates': 'error',
25
'import/no-mutable-exports': 'error',
src/configs/typescript.ts
@@ -135,6 +135,7 @@ export async function typescript(
135
'ts/consistent-type-definitions': ['error', 'interface'],
136
'ts/consistent-type-imports': ['error', {
137
disallowTypeAnnotations: false,
138
+ fixStyle: 'separate-type-imports',
139
prefer: 'type-imports',
140
}],
141
0 commit comments