Skip to content

Commit 8e49a4f

Browse files
authored
docs: document eslint-import-resolver-typescript bun option, fix ESM import (#262)
1 parent 0461791 commit 8e49a4f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,17 @@ module.exports = {
299299

300300
```js
301301
// .eslintrc.mjs
302-
import tsResolver from 'eslint-import-resolver-typescript'
302+
import * as tsResolver from 'eslint-import-resolver-typescript'
303303
304304
export default {
305305
settings: {
306306
'import-x/resolver': {
307307
name: 'tsResolver', // required, could be any string you like
308308
// enable: false, // optional, defaults to true
309-
options: { someConfig: value }, // optional, options to pass to the resolver
309+
// optional, options to pass to the resolver https://github.com/import-js/eslint-import-resolver-typescript#configuration
310+
options: {
311+
bun: true, // optional, resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
312+
},
310313
resolver: tsResolver, // required, the resolver object
311314
},
312315
},
@@ -322,7 +325,10 @@ module.exports = {
322325
'import-x/resolver': {
323326
name: 'tsResolver', // required, could be any string you like
324327
// enable: false, // optional, defaults to true
325-
options: { someConfig: value }, // optional, options to pass to the resolver
328+
// optional, options to pass to the resolver https://github.com/import-js/eslint-import-resolver-typescript#configuration
329+
options: {
330+
bun: true, // optional, resolve Bun modules https://github.com/import-js/eslint-import-resolver-typescript#bun
331+
},
326332
resolver: tsResolver, // required, the resolver object
327333
},
328334
},

0 commit comments

Comments
 (0)