Skip to content

Commit

Permalink
fix: Resolve the problem of incorrect recognition of alias path by Ty…
Browse files Browse the repository at this point in the history
…peScript's Compiler Options (#293)

* install dependencies

* fix: Resolve the problem of incorrect refognition of alias path by TypeScript's Compiler Options
  • Loading branch information
wakamsha authored Jun 6, 2024
1 parent 99d6f6c commit 39c4f0a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"confusing-browser-globals": "^1.0.11",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-jest-dom": "^5.1.0",
Expand Down
3 changes: 3 additions & 0 deletions rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ module.exports = {
node: {
extensions: ['.js', '.mjs', '.json'],
},
// Resolve the problem of incorrect recognition of alias paths by TypeScript compiler options.
// https://github.com/import-js/eslint-plugin-import/issues/1485#issuecomment-535351922
typescript: {},
},
'import/extensions': ['.js', '.mjs', '.jsx'],
'import/core-modules': [],
Expand Down

0 comments on commit 39c4f0a

Please sign in to comment.