Skip to content

Commit 1ea66d8

Browse files
authored
Document bun option
1 parent 72b2fbe commit 1ea66d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export default [
9494
createTypeScriptImportResolver({
9595
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
9696

97+
bun: true, // resolve Bun modules, defaults to false
98+
9799
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
98100

99101
// use <root>/path/to/folder/tsconfig.json
@@ -136,6 +138,8 @@ export default [
136138
typescript: {
137139
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
138140

141+
bun: true, // resolve Bun modules, defaults to false
142+
139143
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
140144

141145
// use <root>/path/to/folder/tsconfig.json
@@ -186,6 +190,8 @@ Add the following to your `.eslintrc` config:
186190
"typescript": {
187191
"alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
188192

193+
"bun": true, // resolve Bun modules, defaults to false
194+
189195
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
190196

191197
// use <root>/path/to/folder/tsconfig.json

0 commit comments

Comments
 (0)