Skip to content

Commit

Permalink
chore(eslint): change 'eslint-import-resolver-alias' to 'eslint-impor…
Browse files Browse the repository at this point in the history
…t-resolver-typescript'
  • Loading branch information
sukvvon committed Dec 24, 2024
1 parent ad8bae0 commit a2355a5
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 24 deletions.
9 changes: 3 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@ export default tseslint.config(
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
alias: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
map: [
['^zustand$', './src/index.ts'],
['zustand', './src'],
],
typescript: {
alwaysTryTypes: true,
project: 'tsconfig.json',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@vitest/ui": "^2.1.8",
"esbuild": "^0.24.0",
"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-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.2",
Expand Down
83 changes: 67 additions & 16 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 src/traditional.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
// eslint-disable-next-line import/extensions
// eslint-disable-next-line import/extensions, import/default
import useSyncExternalStoreExports from 'use-sync-external-store/shim/with-selector'
import { createStore } from './vanilla.ts'
import type {
Expand Down

0 comments on commit a2355a5

Please sign in to comment.