@@ -299,14 +299,17 @@ module.exports = {
299
299
300
300
` ` ` js
301
301
// .eslintrc.mjs
302
- import tsResolver from 'eslint-import-resolver-typescript'
302
+ import * as tsResolver from 'eslint-import-resolver-typescript'
303
303
304
304
export default {
305
305
settings: {
306
306
'import-x/resolver': {
307
307
name: 'tsResolver', // required, could be any string you like
308
308
// 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
+ },
310
313
resolver: tsResolver, // required, the resolver object
311
314
},
312
315
},
@@ -322,7 +325,10 @@ module.exports = {
322
325
'import-x/resolver': {
323
326
name: 'tsResolver', // required, could be any string you like
324
327
// 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
+ },
326
332
resolver: tsResolver, // required, the resolver object
327
333
},
328
334
},
0 commit comments