26 lines
815 B
JavaScript
26 lines
815 B
JavaScript
import js from '@eslint/js';
|
|||
|
|
import pluginVue from 'eslint-plugin-vue';
|
||
|
|
import globals from 'globals';
|
||
|
|
|
||
|
|
// Minimal rules: recommended JS + essential Vue (real errors only, no style rules)
|
||
|
|
export default [
|
||
|
|
{ ignores: ['dist/**', 'node_modules/**'] },
|
||
|
|
js.configs.recommended,
|
||
|
|
...pluginVue.configs['flat/essential'],
|
||
|
|
{
|
||
|
|
files: ['**/*.{js,vue}'],
|
||
|
|
languageOptions: {
|
||
|
|
globals: { ...globals.browser }
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'vue/multi-word-component-names': 'off', // views are named after their route
|
||
|
|
'no-unused-vars': ['warn', { args: 'none', caughtErrors: 'none' }]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['**/*.test.js', 'eslint.config.js', 'vite.config.js'],
|
||
|
|
languageOptions: {
|
||
|
|
globals: { ...globals.node }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
];
|