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
kirklin committed Feb 8, 2025
1 parent 57141e3 commit d88d223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/configs/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ export async function imports(options: OptionsStylistic = {}): Promise<TypedFlat
kirklin: pluginKirkLin,
},
rules: {
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"import/first": "error",
"import/no-duplicates": "error",

"import/no-mutable-exports": "error",
"import/no-named-default": "error",
"import/no-self-import": "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 d88d223

Please sign in to comment.