Skip to content

Commit f4c1ed1

Browse files
committed
fix: add node globals for JS files in eslint config
1 parent eb80031 commit f4c1ed1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eslint.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export default [
88
ignores: ['**/dist/'],
99
},
1010
js.configs.recommended,
11+
{
12+
files: ['**/*.js'],
13+
languageOptions: {
14+
globals: globals.node,
15+
},
16+
},
1117
{
1218
files: ['**/*.ts', '**/*.tsx'],
1319
languageOptions: {

0 commit comments

Comments
 (0)