diff --git a/eslint.config.js b/eslint.config.js index 6dfcd4a..f453c25 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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: { diff --git a/package.json b/package.json index 0105d08..f563806 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14e16c4..c45843a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: version: 6.6.3 '@testing-library/react': specifier: ^16.1.0 - version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.2)(@types/react@19.0.2)(react-dom@19.0.0)(react@19.0.0) + version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.2(@types/react@19.0.2))(@types/react@19.0.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@testing-library/user-event': specifier: ^14.5.2 version: 14.5.2(@testing-library/dom@10.4.0) @@ -32,15 +32,12 @@ importers: eslint: specifier: ^9.17.0 version: 9.17.0 - eslint-import-resolver-alias: - specifier: ^1.1.2 - version: 1.1.2(eslint-plugin-import@2.31.0) eslint-import-resolver-typescript: specifier: ^3.7.0 version: 3.7.0(eslint-plugin-import@2.31.0)(eslint@9.17.0) eslint-plugin-import: specifier: ^2.31.0 - version: 2.31.0(@typescript-eslint/parser@8.18.1)(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0) + version: 2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0) eslint-plugin-jsx-a11y: specifier: ^6.10.2 version: 6.10.2(eslint@9.17.0) @@ -970,12 +967,6 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-import-resolver-alias@1.1.2: - resolution: {integrity: sha512-WdviM1Eu834zsfjHtcGHtGfcu+F30Od3V7I9Fi57uhBEwPkjDcii7/yW8jAT+gOhn4P/vOxxNAXbFAKsrrc15w==} - engines: {node: '>= 4'} - peerDependencies: - eslint-plugin-import: '>=1.4.0' - eslint-import-resolver-node@0.3.9: resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} @@ -2276,14 +2267,15 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 - '@testing-library/react@16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.2)(@types/react@19.0.2)(react-dom@19.0.0)(react@19.0.0)': + '@testing-library/react@16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@19.0.2(@types/react@19.0.2))(@types/react@19.0.2)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: '@babel/runtime': 7.26.0 '@testing-library/dom': 10.4.0 - '@types/react': 19.0.2 - '@types/react-dom': 19.0.2(@types/react@19.0.2) react: 19.0.0 react-dom: 19.0.0(react@19.0.0) + optionalDependencies: + '@types/react': 19.0.2 + '@types/react-dom': 19.0.2(@types/react@19.0.2) '@testing-library/user-event@14.5.2(@testing-library/dom@10.4.0)': dependencies: @@ -2309,7 +2301,7 @@ snapshots: dependencies: csstype: 3.1.3 - '@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1)(eslint@9.17.0)(typescript@5.7.2)': + '@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2)': dependencies: '@eslint-community/regexpp': 4.12.1 '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) @@ -2393,11 +2385,12 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.8(vite@5.4.11)': + '@vitest/mocker@2.1.8(vite@5.4.11(@types/node@22.10.2))': dependencies: '@vitest/spy': 2.1.8 estree-walker: 3.0.3 magic-string: 0.30.17 + optionalDependencies: vite: 5.4.11(@types/node@22.10.2) '@vitest/pretty-format@2.1.8': @@ -2824,10 +2817,6 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-import-resolver-alias@1.1.2(eslint-plugin-import@2.31.0): - dependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.18.1)(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0) - eslint-import-resolver-node@0.3.9: dependencies: debug: 3.2.7 @@ -2842,29 +2831,30 @@ snapshots: debug: 4.4.0 enhanced-resolve: 5.18.0 eslint: 9.17.0 - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.18.1)(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0) fast-glob: 3.3.2 get-tsconfig: 4.8.1 is-bun-module: 1.3.0 is-glob: 4.0.3 stable-hash: 0.0.4 + optionalDependencies: + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0) transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.18.1)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@9.17.0))(eslint@9.17.0): dependencies: - '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) debug: 3.2.7 + optionalDependencies: + '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) eslint: 9.17.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0)(eslint@9.17.0) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1)(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0): dependencies: '@rtsao/scc': 1.1.0 - '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 array.prototype.flat: 1.3.3 @@ -2873,7 +2863,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.17.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.18.1)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@9.17.0))(eslint@9.17.0) hasown: 2.0.2 is-core-module: 2.16.0 is-glob: 4.0.3 @@ -2884,6 +2874,8 @@ snapshots: semver: 6.3.1 string.prototype.trimend: 1.0.9 tsconfig-paths: 3.15.0 + optionalDependencies: + '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -3271,7 +3263,7 @@ snapshots: set-function-name: 2.0.2 jotai@2.10.4(@types/react@19.0.2)(react@19.0.0): - dependencies: + optionalDependencies: '@types/react': 19.0.2 react: 19.0.0 @@ -3761,7 +3753,7 @@ snapshots: typescript-eslint@8.18.1(eslint@9.17.0)(typescript@5.7.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.18.1(@typescript-eslint/parser@8.18.1)(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/eslint-plugin': 8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) '@typescript-eslint/utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2) eslint: 9.17.0 @@ -3786,8 +3778,9 @@ snapshots: valtio@2.1.2(@types/react@19.0.2)(react@19.0.0): dependencies: - '@types/react': 19.0.2 proxy-compare: 3.0.1 + optionalDependencies: + '@types/react': 19.0.2 react: 19.0.0 vite-node@2.1.8(@types/node@22.10.2): @@ -3810,27 +3803,26 @@ snapshots: vite@5.4.11(@types/node@22.10.2): dependencies: - '@types/node': 22.10.2 esbuild: 0.21.5 postcss: 8.4.49 rollup: 4.28.1 optionalDependencies: + '@types/node': 22.10.2 fsevents: 2.3.3 vite@6.0.4(@types/node@22.10.2): dependencies: - '@types/node': 22.10.2 esbuild: 0.24.1 postcss: 8.4.49 rollup: 4.28.1 optionalDependencies: + '@types/node': 22.10.2 fsevents: 2.3.3 vitest@2.1.8(@types/node@22.10.2)(happy-dom@15.11.7): dependencies: - '@types/node': 22.10.2 '@vitest/expect': 2.1.8 - '@vitest/mocker': 2.1.8(vite@5.4.11) + '@vitest/mocker': 2.1.8(vite@5.4.11(@types/node@22.10.2)) '@vitest/pretty-format': 2.1.8 '@vitest/runner': 2.1.8 '@vitest/snapshot': 2.1.8 @@ -3839,7 +3831,6 @@ snapshots: chai: 5.1.2 debug: 4.4.0 expect-type: 1.1.0 - happy-dom: 15.11.7 magic-string: 0.30.17 pathe: 1.1.2 std-env: 3.8.0 @@ -3850,6 +3841,9 @@ snapshots: vite: 5.4.11(@types/node@22.10.2) vite-node: 2.1.8(@types/node@22.10.2) why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.10.2 + happy-dom: 15.11.7 transitivePeerDependencies: - less - lightningcss diff --git a/tsconfig.json b/tsconfig.json index e2c1939..c300c4f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ "jsx": "react-jsx", "baseUrl": ".", "paths": { - "jotai-valtio": ["./src/index.js"] + "jotai-valtio": ["./src/index.ts"] } }, "exclude": ["dist", "examples"]