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.
21 lines
478 B
JavaScript
21 lines
478 B
JavaScript
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
|
|
]
|