@@ -25,14 +25,14 @@ This means you can:
2525
2626- [ Notice] ( #notice )
2727- [ Installation] ( #installation )
28- - [ ` eslint-plugin-import ` ] ( #eslint-plugin-import )
2928 - [ ` eslint-plugin-import-x ` ] ( #eslint-plugin-import-x )
29+ - [ ` eslint-plugin-import ` ] ( #eslint-plugin-import )
3030- [ Configuration] ( #configuration )
3131 - [ ` eslint.config.js ` ] ( #eslintconfigjs )
3232 - [ ` .eslintrc ` ] ( #eslintrc )
3333 - [ Other environments] ( #other-environments )
3434 - [ Bun] ( #bun )
35- - [ Options from ` rspack -resolver` ] ( #options-from-rspack -resolver )
35+ - [ Options from ` unrs -resolver` ] ( #options-from-unrs -resolver )
3636 - [ ` conditionNames ` ] ( #conditionnames )
3737 - [ ` extensions ` ] ( #extensions )
3838 - [ ` extensionAlias ` ] ( #extensionalias )
@@ -53,30 +53,30 @@ If you're facing some problems on rules `import/default` or `import/named` from
5353
5454## Installation
5555
56- ### ` eslint-plugin-import `
56+ ### ` eslint-plugin-import-x `
5757
5858``` sh
5959# npm
60- npm i -D eslint-plugin-import eslint-import-resolver-typescript
60+ npm i -D eslint-plugin-import-x eslint-import-resolver-typescript
6161
6262# pnpm
63- pnpm i -D eslint-plugin-import eslint-import-resolver-typescript
63+ pnpm i -D eslint-plugin-import-x eslint-import-resolver-typescript
6464
6565# yarn
66- yarn add -D eslint-plugin-import eslint-import-resolver-typescript
66+ yarn add -D eslint-plugin-import-x eslint-import-resolver-typescript
6767```
6868
69- ### ` eslint-plugin-import-x `
69+ ### ` eslint-plugin-import `
7070
7171``` sh
7272# npm
73- npm i -D eslint-plugin-import-x eslint-import-resolver-typescript
73+ npm i -D eslint-plugin-import eslint-import-resolver-typescript
7474
7575# pnpm
76- pnpm i -D eslint-plugin-import-x eslint-import-resolver-typescript
76+ pnpm i -D eslint-plugin-import eslint-import-resolver-typescript
7777
7878# yarn
79- yarn add -D eslint-plugin-import-x eslint-import-resolver-typescript
79+ yarn add -D eslint-plugin-import eslint-import-resolver-typescript
8080```
8181
8282## Configuration
@@ -98,30 +98,27 @@ export default [
9898
9999 bun: true , // resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
100100
101- // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
101+ // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json or <root>/jsconfig.json by default
102102
103- // use <root>/path/to/folder/tsconfig.json
103+ // use <root>/path/to/folder/tsconfig.json or <root>/path/to/folder/jsconfig.json
104104 project: ' path/to/folder' ,
105105
106- // Multiple tsconfigs (Useful for monorepos)
106+ // Multiple tsconfigs/jsconfigs (Useful for monorepos, but discouraged in favor of `references` supported )
107107
108108 // use a glob pattern
109- project: ' packages/*/tsconfig .json' ,
109+ project: ' packages/*/{ts,js}config .json' ,
110110
111111 // use an array
112112 project: [
113113 ' packages/module-a/tsconfig.json' ,
114- ' packages/module-b/tsconfig .json' ,
114+ ' packages/module-b/jsconfig .json' ,
115115 ],
116116
117117 // use an array of glob patterns
118118 project: [
119119 ' packages/*/tsconfig.json' ,
120- ' other-packages/*/tsconfig .json' ,
120+ ' other-packages/*/jsconfig .json' ,
121121 ],
122-
123- // use <root>/jsconfig.json
124- project: ' jsconfig.json' ,
125122 }),
126123 ],
127124 },
@@ -142,30 +139,27 @@ export default [
142139
143140 bun: true , // resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
144141
145- // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
142+ // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json or <root>/jsconfig.json by default
146143
147- // use <root>/path/to/folder/tsconfig.json
144+ // use <root>/path/to/folder/tsconfig.json or <root>/path/to/folder/jsconfig.json
148145 project: ' path/to/folder' ,
149146
150- // Multiple tsconfigs (Useful for monorepos)
147+ // Multiple tsconfigs/jsconfigs (Useful for monorepos, but discouraged in favor of `references` supported )
151148
152149 // use a glob pattern
153- project: ' packages/*/tsconfig .json' ,
150+ project: ' packages/*/{ts,js}config .json' ,
154151
155152 // use an array
156153 project: [
157154 ' packages/module-a/tsconfig.json' ,
158- ' packages/module-b/tsconfig .json' ,
155+ ' packages/module-b/jsconfig .json' ,
159156 ],
160157
161158 // use an array of glob patterns
162159 project: [
163160 ' packages/*/tsconfig.json' ,
164- ' other-packages/*/tsconfig .json' ,
161+ ' other-packages/*/jsconfig .json' ,
165162 ],
166-
167- // use <root>/jsconfig.json
168- project: ' jsconfig.json' ,
169163 },
170164 },
171165 },
@@ -194,30 +188,27 @@ Add the following to your `.eslintrc` config:
194188
195189 " bun" : true , // resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
196190
197- // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
191+ // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json or <root>/jsconfig.json by default
198192
199- // use <root>/path/to/folder/tsconfig.json
193+ // use <root>/path/to/folder/tsconfig.json or <root>/path/to/folder/jsconfig.json
200194 " project" : " path/to/folder" ,
201195
202- // Multiple tsconfigs (Useful for monorepos)
196+ // Multiple tsconfigs (Useful for monorepos, but discouraged in favor of `references` supported )
203197
204198 // use a glob pattern
205- " project" : " packages/*/tsconfig .json" ,
199+ " project" : " packages/*/{ts,js}config .json" ,
206200
207201 // use an array
208202 " project" : [
209203 " packages/module-a/tsconfig.json" ,
210- " packages/module-b/tsconfig .json" ,
204+ " packages/module-b/jsconfig .json" ,
211205 ],
212206
213207 // use an array of glob patterns
214208 " project" : [
215209 " packages/*/tsconfig.json" ,
216- " other-packages/*/tsconfig .json" ,
210+ " other-packages/*/jsconfig .json" ,
217211 ],
218-
219- // use <root>/jsconfig.json
220- " project" : " jsconfig.json" ,
221212 },
222213 },
223214 },
@@ -236,7 +227,7 @@ Enable Bun built-in module resolution by choosing 1 out of these 3 options:
236227- Run ESLint with ` bun --bun eslint `
237228- [ Configure ` run.bun ` in ` bunfig.toml ` ] ( https://bun.sh/docs/runtime/bunfig#run-bun-auto-alias-node-to-bun )
238229
239- ## Options from [ ` rspack -resolver` ] [ ]
230+ ## Options from [ ` unrs -resolver` ] [ ]
240231
241232### ` conditionNames `
242233
@@ -320,7 +311,7 @@ Default:
320311
321312### Other options
322313
323- You can pass through other options of [ ` rspack -resolver` ] [ ] directly
314+ You can pass through other options of [ ` unrs -resolver` ] [ ] directly
324315
325316### Default options
326317
@@ -361,6 +352,6 @@ Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.m
361352
362353[ `eslint-plugin-import` ] : https://github.com/import-js/eslint-plugin-import
363354[ `eslint-plugin-import-x` ] : https://github.com/un-ts/eslint-plugin-import-x
364- [ `rspack -resolver` ] : https://github.com/unrs/rspack -resolver
355+ [ `unrs -resolver` ] : https://github.com/unrs/unrs -resolver
365356[ `typescript` ] : https://www.typescriptlang.org
366357[ isc ] : https://opensource.org/licenses/ISC
0 commit comments