From 02ae01ad802da8a1eeb3ad0412a6202fb026dde8 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 15 Apr 2026 11:38:18 +0200 Subject: [PATCH] chore(frontend): enable vue/multi-word-component-names with legacy allowlist --- frontend/eslint.config.js | 57 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 527498e67..906b32d1e 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -25,7 +25,62 @@ export default [ 'indent': ['error', 'tab', { 'SwitchCase': 1 }], 'vue/v-on-event-hyphenation': ['warn', 'never', {'autofix': true}], - 'vue/multi-word-component-names': 'off', + 'vue/multi-word-component-names': ['error', { + ignores: [ + // Existing single-word components grandfathered in. + // New components must use multi-word names per Vue style guide. + '404', + 'About', + 'Attachments', + 'Auth', + 'Button.story', + 'Caldav', + 'Card', + 'Card.story', + 'Comments', + 'Datepicker', + 'Description', + 'Done', + 'Dropdown', + 'Error', + 'Expandable', + 'Filters', + 'Flatpickr', + 'Heading', + 'Home', + 'Icon', + 'index', + 'Label', + 'Labels', + 'Legal', + 'List', + 'Loading', + 'Login', + 'Logo', + 'Message', + 'Migration', + 'Modal', + 'Multiselect', + 'Navigation', + 'Nothing', + 'Notification', + 'Notifications', + 'Pagination', + 'Password', + 'Popup', + 'Reactions', + 'Ready', + 'Register', + 'Reminders', + 'Reminders.story', + 'Sessions', + 'Settings', + 'Shortcut', + 'Sort', + 'Subscription', + 'User', + ], + }], // uncategorized rules: 'vue/component-api-style': ['error', ['script-setup']],