Skip to content

Commit

Permalink
eliminate alias
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Dec 25, 2024
1 parent 98e04f4 commit 0355a96
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 40 deletions.
5 changes: 1 addition & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ export default tseslint.config(
...compat.extends('plugin:react-hooks/recommended'),
{
settings: {
'import/resolver': {
typescript: true,
alias: { map: [['jotai-valtio', './src/index.ts']] },
},
'import/resolver': { typescript: true },
react: { version: 'detect' },
},
rules: {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"eslint": "^9.17.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
Expand Down
62 changes: 28 additions & 34 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"jotai-valtio": ["./src/index.js"]
"jotai-valtio": ["./src/index.ts"]
}
},
"exclude": ["dist", "examples"]
Expand Down

0 comments on commit 0355a96

Please sign in to comment.