Upgrade frontend dependencies and migrate to ESLint 10
Update npm packages to their latest releases, including eslint 10, @vue/eslint-config-prettier 10 and jsdom 30. Replace .eslintrc.cjs with a flat eslint.config.js and drop @rushstack/eslint-patch. Drop unused catch bindings flagged by ESLint 10's no-unused-vars defaults. Override glob and minimatch to patched releases, since js-beautify and eslint still pull in vulnerable versions.
This commit is contained in:
1 parent
c7b1dd4658
commit
e5068cc833
5 files changed
+741
-1290
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import js from '@eslint/js'
|
||||
import pluginVue from 'eslint-plugin-vue'
|
||||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
|
||||
import globals from 'globals'
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: ['dist/**', 'dist-ssr/**', 'coverage/**']
|
||||
},
|
||||
{
|
||||
files: ['**/*.{js,mjs,cjs,vue}'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
globals: globals.browser
|
||||
}
|
||||
},
|
||||
js.configs.recommended,
|
||||
...pluginVue.configs['flat/essential'],
|
||||
skipFormatting
|
||||
]
|
||||
Reference in new issue
Block a user