Skip to content

Commit 88c71b4

Browse files
authored
fix: Corrected misconfiguration in ESLint rules (#47)
1 parent 2c1bdd4 commit 88c71b4

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

eslint.config.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,20 @@ module.exports = ts.config(
77
js.configs.recommended,
88
...ts.configs.recommended,
99
prettier,
10-
{
11-
plugins: {
12-
jest: jest,
13-
},
14-
rules: {
15-
'no-undef': 'off',
16-
},
17-
},
1810
{
1911
ignores: ['lib/**'],
2012
},
2113
{
2214
files: ['**/*.js', '**/*.ts'],
2315
rules: {
24-
'@typescript-eslint/no-explicit-any': 'warn',
2516
'@typescript-eslint/no-var-requires': 'off',
17+
'@typescript-eslint/no-explicit-any': 'warn',
2618
},
2719
},
20+
{
21+
files: ['tests/**/*.spec.js', 'tests/**/*.spec.ts'],
22+
...jest.configs['flat/recommended'],
23+
},
2824
{
2925
languageOptions: {
3026
globals: {
@@ -33,6 +29,8 @@ module.exports = ts.config(
3329
exports: true,
3430
module: true,
3531
require: true,
32+
process: true,
33+
NodeJS: true,
3634
},
3735
},
3836
},

0 commit comments

Comments
 (0)