Skip to content

Commit a671fca

Browse files
committed
chore: update ESLint configuration to improve TypeScript support
- Remove unused Jest and Bun globals - Add patterns to ignore test files (*.spec.ts, *.test.ts) - Refactor import plugins for better TypeScript integration
1 parent c460a65 commit a671fca

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

eslint.config.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import globals from 'globals';
88
export default [
99
// Base JavaScript configuration
1010
js.configs.recommended,
11-
...tseslint.configs.recommended,
1211

1312
// Global ignore patterns
1413
{
@@ -22,6 +21,8 @@ export default [
2221
'**/*.config.ts',
2322
'**/generated/**',
2423
'.eslintrc.js',
24+
'**/*.spec.ts',
25+
'**/*.test.ts',
2526
],
2627
},
2728

@@ -41,8 +42,6 @@ export default [
4142
globals: {
4243
// Universal globals that work everywhere
4344
...globals.node,
44-
...globals.jest,
45-
...globals.bun,
4645
...globals.browser,
4746
...globals.es2021,
4847
console: 'readonly',
@@ -56,19 +55,8 @@ export default [
5655
},
5756
},
5857
plugins: {
59-
'import/resolver': {
60-
typescript: {
61-
// Point to all tsconfig.json files in your workspaces
62-
project: [
63-
'apps/*/tsconfig.json',
64-
'packages/*/tsconfig.json',
65-
'./tsconfig.json', // Also include the root tsconfig as a fallback
66-
],
67-
},
68-
node: true,
69-
},
70-
// Allow Bun built-in modules
71-
'import/core-modules': ['bun:test', 'bun'],
58+
'@typescript-eslint': tseslint,
59+
prettier: prettierPlugin,
7260
},
7361
rules: {
7462
// Turn off rules that conflict with TypeScript

0 commit comments

Comments
 (0)