@@ -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
304304export 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