Skip to content

Commit 70f83ba

Browse files
committed
Cleanup configs
1 parent af16310 commit 70f83ba

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

eslint.config.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,15 @@ module.exports = [
3939
...importXPlugin.flatConfigs.recommended.languageOptions,
4040
...nodePlugin.configs['flat/recommended-script'].languageOptions,
4141
ecmaVersion: LATEST,
42-
globals: Object.fromEntries(
43-
Object.entries(globals.node).map(([k]) => [k, 'readonly'])
44-
),
42+
globals: {
43+
...js.configs.recommended.languageOptions?.globals,
44+
...importXPlugin.flatConfigs.recommended.languageOptions?.globals,
45+
...nodePlugin.configs['flat/recommended-script'].languageOptions
46+
?.globals,
47+
...Object.fromEntries(
48+
Object.entries(globals.node).map(([k]) => [k, 'readonly'])
49+
)
50+
},
4551
sourceType: 'script'
4652
},
4753
linterOptions: {

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@
3333
"noUnusedParameters": true,
3434
"noUncheckedSideEffectImports": true
3535
},
36-
"include": ["**/*.ts"],
37-
"exclude": []
36+
"include": ["**/*.ts"]
3837
}

0 commit comments

Comments
 (0)