import js from '@eslint/js' import pluginVue from 'eslint-plugin-vue' export default [ js.configs.recommended, ...pluginVue.configs['flat/recommended'], { languageOptions: { globals: { // Browser globals window: 'readonly', document: 'readonly', fetch: 'readonly', console: 'readonly', setTimeout: 'readonly', clearTimeout: 'readonly', setInterval: 'readonly', clearInterval: 'readonly', requestAnimationFrame: 'readonly', cancelAnimationFrame: 'readonly' } }, rules: { // Vue specific rules 'vue/multi-word-component-names': 'off', // Allow single-word component names 'vue/max-attributes-per-line': 'off', // Allow multiple attributes per line 'vue/singleline-html-element-content-newline': 'off', 'vue/html-self-closing': ['error', { html: { void: 'always', normal: 'never', component: 'always' } }], // General JS rules 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], 'no-console': 'warn', 'prefer-const': 'error', 'no-var': 'error' } }, { ignores: ['dist/**', 'node_modules/**'] } ]