File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export function imports(): TypedFlatConfigItem[] {
1414 'antfu/no-import-dist' : 'error' ,
1515 'antfu/no-import-node-modules-by-path' : 'error' ,
1616
17+ 'import/consistent-type-specifier-style' : [ 'error' , 'prefer-top-level' ] ,
1718 'import/first' : 'error' ,
1819 'import/no-duplicates' : 'error' ,
1920 'import/no-mutable-exports' : 'error' ,
Original file line number Diff line number Diff line change @@ -141,7 +141,11 @@ export async function typescript(
141141 'ts/consistent-type-definitions' : [ 'error' , 'interface' ] ,
142142 'ts/consistent-type-imports' : [
143143 'error' ,
144- { disallowTypeAnnotations : false , prefer : 'type-imports' } ,
144+ {
145+ disallowTypeAnnotations : false ,
146+ fixStyle : 'separate-type-imports' ,
147+ prefer : 'type-imports' ,
148+ } ,
145149 ] ,
146150 'ts/method-signature-style' : [ 'error' , 'property' ] , // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
147151 'ts/no-dupe-class-members' : 'error' ,
You can’t perform that action at this time.
0 commit comments