Part of #8084
What
Add a lint rule (or custom lint script) that enforces all Vue Router route name values match the kebab-case pattern: /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/.
This should run as part of npm run lint so it catches regressions in CI.
Why
After the full route rename effort (#8084), we want to make sure no one accidentally introduces a PascalCase or spaced route name again.
Approach
Might be worth considering a small custom ESLint rule, a vitest snapshot test that reads all registered routes, or a standalone lint script. Whatever fits best with the existing tooling.
Part of #8084
What
Add a lint rule (or custom lint script) that enforces all Vue Router route
namevalues match the kebab-case pattern:/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/.This should run as part of
npm run lintso it catches regressions in CI.Why
After the full route rename effort (#8084), we want to make sure no one accidentally introduces a PascalCase or spaced route name again.
Approach
Might be worth considering a small custom ESLint rule, a vitest snapshot test that reads all registered routes, or a standalone lint script. Whatever fits best with the existing tooling.