Skip to content

Commit c0e3ce2

Browse files
authored
Add Bun environment setup instructions to README
1 parent 1ea66d8 commit c0e3ce2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,18 @@ Add the following to your `.eslintrc` config:
222222
}
223223
```
224224

225+
### Other environments
226+
227+
#### Bun
228+
229+
[Bun](https://bun.sh/) provides builtin modules such as `bun:test`, which are not resolved by default.
230+
231+
Enable Bun builtin module resolution by choosing one of these 3 options:
232+
233+
- Set the `bun: true` option, as shown in [Configuration](#configuration) above
234+
- Run ESLint with `bun --bun eslint`
235+
- [Configure `run.bun` in `bunfig.toml`](https://bun.sh/docs/runtime/bunfig#run-bun-auto-alias-node-to-bun)
236+
225237
## Options from [`rspack-resolver`][]
226238

227239
### `conditionNames`

0 commit comments

Comments
 (0)