Skip to content

Commit 88ad39f

Browse files
committed
Fix eslint
1 parent 8545a6f commit 88ad39f

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

eslint.config.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import vueParser from 'vue-eslint-parser';
55
import globals from 'globals';
66

77
export default tseslint.config(
8-
{ ignores: ['dist', 'node_modules', '*.d.ts'] },
8+
{
9+
ignores: ['dist', 'node_modules', '*.d.ts'],
10+
},
11+
912
js.configs.recommended,
1013
...tseslint.configs.recommended,
1114
{
@@ -28,7 +31,9 @@ export default tseslint.config(
2831
'vue/no-setup-props-destructure': 'off',
2932
'@typescript-eslint/no-unused-vars': [
3033
'warn',
31-
{ argsIgnorePattern: '^_' },
34+
{
35+
argsIgnorePattern: '^_',
36+
},
3237
],
3338
'@typescript-eslint/no-explicit-any': 'off',
3439
},
@@ -43,4 +48,16 @@ export default tseslint.config(
4348
},
4449
},
4550
},
51+
{
52+
files: ['scripts/**/*.mjs', 'scripts/**/*.js'],
53+
languageOptions: {
54+
globals: {
55+
...globals.node,
56+
},
57+
parserOptions: {
58+
ecmaVersion: 'latest',
59+
sourceType: 'module',
60+
},
61+
},
62+
},
4663
);

0 commit comments

Comments
 (0)