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>
27 lines
815 B
JavaScript
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 }
|
|
}
|
|
}
|
|
];
|