Skip to content

Commit c01e0db

Browse files
committed
Fix config for Bun, upgrade to [email protected]
1 parent f3667b2 commit c01e0db

File tree

3 files changed

+26
-19
lines changed

3 files changed

+26
-19
lines changed

index.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import next from '@next/eslint-plugin-next';
55
import eslintTypescript from '@typescript-eslint/eslint-plugin';
66
import typescriptParser from '@typescript-eslint/parser';
77
import gitignore from 'eslint-config-flat-gitignore';
8+
import * as tsResolver from 'eslint-import-resolver-typescript';
89
import eslintImportX from 'eslint-plugin-import-x';
910
import jsxA11y from 'eslint-plugin-jsx-a11y';
1011
import react from 'eslint-plugin-react';
@@ -534,9 +535,11 @@ const configArray = [
534535
'@typescript-eslint/parser': ['.ts', '.tsx'],
535536
},
536537
'import-x/resolver': {
537-
// Load <rootdir>/tsconfig.json
538-
typescript: true,
539-
node: true,
538+
name: 'tsResolver',
539+
options: {
540+
bun: true,
541+
},
542+
resolver: tsResolver,
540543
},
541544
react: {
542545
version: 'detect',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@typescript-eslint/eslint-plugin": "8.27.0",
4242
"@typescript-eslint/parser": "8.27.0",
4343
"eslint-config-flat-gitignore": "2.1.0",
44-
"eslint-import-resolver-typescript": "4.2.2",
44+
"eslint-import-resolver-typescript": "4.2.3",
4545
"eslint-plugin-import-x": "4.9.1",
4646
"eslint-plugin-jsx-a11y": "6.10.2",
4747
"eslint-plugin-react": "7.37.4",

pnpm-lock.yaml

+19-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)