Skip to content

fix(lint): properly resolve vue/multi-word-component-names violations#71

Merged
pparage merged 5 commits into
devfrom
fix/issue-48-multi-word-component-names
May 20, 2026
Merged

fix(lint): properly resolve vue/multi-word-component-names violations#71
pparage merged 5 commits into
devfrom
fix/issue-48-multi-word-component-names

Conversation

@t0kubetsu
Copy link
Copy Markdown
Contributor

Summary

Closes #48

Commit 6dfd359 resolved the ESLint error by disabling vue/multi-word-component-names globally in eslint.config.js rather than fixing the two offending components. This PR reverses that shortcut and applies the correct fix.

  • eslint.config.jsvue/multi-word-component-names re-enabled ('error'). vue/block-lang remains off (intentional: many components still use JS <script setup> without a lang attribute).
  • src/views/Settings.vuedefineOptions({ name: 'SettingsView' }) added. No file rename needed; defineOptions is the idiomatic way to set an explicit multi-word name in <script setup>.
  • src/views/Dashboard.vuedefineOptions({ name: 'DashboardView' }) added. Same violation, same fix.

No router changes required — imports reference file paths, not component names.

Test plan

  • npm run lint passes with zero vue/multi-word-component-names errors
  • App navigates to / (Dashboard) and /settings correctly
  • No regressions in the project editor view

t0kubetsu added 3 commits May 20, 2026 14:31
The rule was disabled in 6dfd359 to silence an ESLint error on Settings.vue
instead of fixing the underlying single-word component names.
Adds defineOptions({ name: 'SettingsView' }) to satisfy the
vue/multi-word-component-names rule without renaming the file.
Same rule applies: Dashboard is a single-word component name.
pparage added 2 commits May 20, 2026 15:13
dev carries Sidebar, Home and Sources (not present when this PR branched),
which the now-enabled vue/multi-word-component-names rule flags. Add
defineOptions names so lint passes after the merge.
@pparage pparage merged commit 092f057 into dev May 20, 2026
1 check failed
@pparage pparage deleted the fix/issue-48-multi-word-component-names branch May 20, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants