Skip to content

Commit 39afc31

Browse files
committed
re-add resolver
1 parent 444d604 commit 39afc31

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed

eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export default defineConfig({
3838
"import-x/parsers": {
3939
"@typescript-eslint/parser": [".js", ".jsx", ".ts", ".tsx"],
4040
},
41+
"import-x/resolver": {
42+
"typescript": true,
43+
},
4144
"react": { // used by eslint-plugin-react
4245
version: "19",
4346
},

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const common: Linter.Config = {
9898
settings: {
9999
"import-x/extensions": [...jsExts, tsExts],
100100
"import-x/parsers": {"@typescript-eslint/parser": [...jsExts, tsExts]},
101+
"import-x/resolver": {"typescript": true},
101102
"linkComponents": [{name: "Link", linkAttribute: "href"}],
102103
"react": {version: "detect"},
103104
},

package-lock.json

Lines changed: 73 additions & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@typescript-eslint/parser": "8.28.0",
2424
"@vitest/eslint-plugin": "1.1.38",
2525
"deepie-merge": "1.3.1",
26+
"eslint-import-resolver-typescript": "4.2.5",
2627
"eslint-plugin-array-func": "4.0.0",
2728
"eslint-plugin-import-x": "4.9.3",
2829
"eslint-plugin-jsx-a11y": "6.10.2",

0 commit comments

Comments
 (0)