refactor: migrate ESLint to 9.x

This commit is contained in:
mrholek
2025-02-14 12:11:42 +01:00
parent f383307ce1
commit 35e94736c6
4 changed files with 27 additions and 16 deletions
+23
View File
@@ -0,0 +1,23 @@
import eslintPluginVue from 'eslint-plugin-vue'
import globals from 'globals'
export default [
{ ignores: ['dist/', 'eslint.config.mjs'] },
...eslintPluginVue.configs['flat/essential'],
{
files: ['src/**/*.{js,vue}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/multi-word-component-names': 'off',
},
},
]