Skip to content

Commit 842ed69

Browse files
committed
🐛 fix eslint config to handle missing vue3-recommended rules gracefully
1 parent ded8c37 commit 842ed69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eslint.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export default [
2121
'@typescript-eslint': typescriptEslintPlugin
2222
},
2323
rules: {
24-
...eslintPluginVue.configs['vue3-recommended'].rules,
24+
...(eslintPluginVue.configs && eslintPluginVue.configs['vue3-recommended']
25+
? eslintPluginVue.configs['vue3-recommended'].rules
26+
: {}),
2527
'no-unused-vars': 'warn',
2628
'no-console': 'warn',
2729
eqeqeq: 'error',

0 commit comments

Comments
 (0)