@@ -96,7 +96,7 @@ export default [
96
96
createTypeScriptImportResolver ({
97
97
alwaysTryTypes: true , // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
98
98
99
- bun: true , // resolve Bun modules, defaults to false
99
+ bun: true , // resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
100
100
101
101
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
102
102
@@ -140,7 +140,7 @@ export default [
140
140
typescript: {
141
141
alwaysTryTypes: true , // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
142
142
143
- bun: true , // resolve Bun modules, defaults to false
143
+ bun: true , // resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
144
144
145
145
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
146
146
@@ -192,7 +192,7 @@ Add the following to your `.eslintrc` config:
192
192
" typescript" : {
193
193
" alwaysTryTypes" : true , // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
194
194
195
- " bun" : true , // resolve Bun modules, defaults to false
195
+ " bun" : true , // resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
196
196
197
197
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
198
198
@@ -230,7 +230,7 @@ Add the following to your `.eslintrc` config:
230
230
231
231
[ Bun] ( https://bun.sh/ ) provides built-in modules such as ` bun:test ` , which are not resolved by default.
232
232
233
- Enable Bun built-in module resolution by choosing one of these 3 options:
233
+ Enable Bun built-in module resolution by choosing 1 out of these 3 options:
234
234
235
235
- Set the ` bun: true ` option, as shown in [ Configuration] ( #configuration ) above
236
236
- Run ESLint with ` bun --bun eslint `
0 commit comments