Repository navigation
feat: require PascalCase Vue component filenames - #212
Merged
Merged
Conversation
The Vue layer now holds .vue files to PascalCase, and the shared Biome config accepts PascalCase as well as kebab-case under any components/ directory, so a component's tests and stories can share its name. strictCase is off there so that names with consecutive capitals, such as UIButton, pass.
sinemacula-ben
force-pushed
the
feature/pascal-case-vue-components
branch
from
November 17, 2026 20:03
fab16ab to
68c435d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Vue component filenames move from kebab-case to PascalCase, the more common Vue convention.
js/eslint/vue.js:check-file/filename-naming-conventionholds**/*.vuetoPASCAL_CASE(UserCard.vue).js/biome.shared.json: an override for**/components/**accepts PascalCase as well as kebab-case, so a component's tests and stories share its name (UserCard/UserCard.test.ts,UserCard.stories.ts). Everywhere else stays kebab-case only, and camelCase is still rejected insidecomponents/.Choices worth flagging
strictCase: falsein the override. Biome's default rejects consecutive capitals, so names likeUIButtonwould fail. It only affects the camelCase and PascalCase checks, so kebab-case is unchanged..vuebeside it, socomponents/is the boundary. React consumers get the same allowance there, which matches that ecosystem too.@biomejs/biome2.5.6 as an exact devDependency, the version the README has consumers pin, so the new test runs the Biome they run. It isn't installed for consumers, and the tests stay out of the published package.feat, as feat: enforce filename casing and import grouping, add a vue preset #96 introduced the kebab-case rule. Consumers with kebab-case.vuefiles fail lint when they upgrade, until they rename.Known gap, not changed here
Qlty drops Biome's
useFilenamingConventiondiagnostics: the rdjson output carries no location for a filename rule, and Qlty discards location-less results. So the shared kebab-case rule for.tsfiles has never failed a consumer'sqlty check. Only editors and direct Biome runs see it. The Vue rule runs through ESLint, which Qlty reports, so it is enforced. Moving the TS filename rule to ESLint's check-file would close the gap, as its own change.Verification
js/eslint/__tests__/vue.test.js: PascalCase passes, including consecutive capitals; kebab, camel and snake case are reported. Both tests fail onmaster.js/__tests__/biome.test.jsruns Biome 2.5.6 against a consumer extending the real shared config. It fails if the override is removed orstrictCasegoes back to true..qlty/configs/biome.jsonextending./biome.shared.json) with its source pointed at this branch loads the config without error. Biome's raw output reports a PascalCase file outsidecomponents/and a camelCase one inside it, and passes a PascalCase test file inside it.overrideskeeps the shared one (checked against 2.5.6).npm run test:js: 592/592.npm run lint:js: clean.qlty check --all,qlty fmt --all,qlty smells --all: clean.npm pack --dry-runships no tests.