Files
OpenVPN-Monitoring-Simple/APP_UI/eslint.config.js
T
ayurishchevandClaude Sonnet 5.5 32d6b0e525 UI review, stage 4: accessibility, product name, favicon, ESLint
Login: label for/id, autocomplete, inputmode for the 2FA code; clickable
table rows, headers and client links work from the keyboard. One product
name (OpenVPN Controller), own favicon (logo.svg) instead of vite.svg,
footer text fixed. Minimal ESLint config (npm run lint, clean).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-07 13:13:25 +03:00

27 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 }
}
}
];