Skip to content

Commit b1817f2

Browse files
committed
switch to prefer-top-level-if-only-type-imports
1 parent 61ccc29 commit b1817f2

File tree

3 files changed

+68
-36
lines changed

3 files changed

+68
-36
lines changed

package-lock.json

Lines changed: 63 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@typescript-eslint/utils": "^8.29.1",
88
"eslint-plugin-eslint-comments": "^3.2.0",
99
"eslint-plugin-github": "^5.1.8",
10-
"eslint-plugin-import": "^2.31.0",
10+
"eslint-plugin-import": "github:qawolf/eslint-plugin-import#prefer-top-level-if-only-type-imports",
1111
"eslint-plugin-jest": "^28.11.0",
1212
"eslint-plugin-n": "^17.18.0",
1313
"eslint-plugin-perfectionist": "^4.11.0",

src/config/formatting.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ export const formattingRules = {
1515
curly: ["error", "multi-or-nest"],
1616

1717
// Also see @typescript-eslint/consistent-type-imports: they do similar, but slightly different things
18-
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
18+
"import/consistent-type-specifier-style": [
19+
"error",
20+
"prefer-top-level-if-only-type-imports",
21+
],
1922

2023
"object-shorthand": ["error", "always", { avoidExplicitReturnArrows: true }],
2124

0 commit comments

Comments
 (0)