Skip to content

Commit d86965d

Browse files
authored
Link to Bun section
1 parent 881b7db commit d86965d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default [
9696
createTypeScriptImportResolver({
9797
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
9898

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
100100

101101
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
102102

@@ -140,7 +140,7 @@ export default [
140140
typescript: {
141141
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
142142

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
144144

145145
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
146146

@@ -192,7 +192,7 @@ Add the following to your `.eslintrc` config:
192192
"typescript": {
193193
"alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
194194

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
196196

197197
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
198198

@@ -230,7 +230,7 @@ Add the following to your `.eslintrc` config:
230230

231231
[Bun](https://bun.sh/) provides built-in modules such as `bun:test`, which are not resolved by default.
232232

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:
234234

235235
- Set the `bun: true` option, as shown in [Configuration](#configuration) above
236236
- Run ESLint with `bun --bun eslint`

0 commit comments

Comments
 (0)