Skip to content

fix: accept consecutive capitals in identifiers - #217

Merged
sinemacula-ben merged 1 commit into
masterfrom
fix/naming-convention-strict-case
Nov 18, 2026
Merged

sinemacula-ben merged 1 commit into
masterfrom
fix/naming-convention-strict-case

Conversation

@sinemacula-ben

Copy link
Copy Markdown
Contributor

Biome's useNamingConvention uses strictCase: true by default, which rejects two capitals in a row. So an import named after a component such as UIButton, or a function such as parseJSON, was flagged, though both are valid PascalCase and camelCase. #212 relaxed the same option for filenames under components/, but identifiers still failed.

Changes

  • js/biome.shared.json: useNamingConvention sets strictCase: false. The allowed formats don't change, so user_name is still rejected.
  • js/__tests__/biome.test.js: identifier cases, run through the pinned Biome, alongside the filename cases.
  • README: the Vue section notes that a component whose name opens with an acronym or one-letter prefix keeps that name when imported.

Verification

  • The new identifier test fails without the config change and passes with it.
  • Vitest (594) and ESLint pass.
  • qlty check --all --no-cache, qlty fmt --all and qlty smells --all are clean.

Biome's naming rule rejected two capitals in a row by default, so an import named after a component such as UIButton, or a function such as parseJSON, was flagged. strictCase is now off: names still have to be camelCase, PascalCase or CONSTANT_CASE.
@sinemacula-ben
sinemacula-ben merged commit 6802c0c into master Nov 18, 2026
22 checks passed
@sinemacula-ben
sinemacula-ben deleted the fix/naming-convention-strict-case branch November 18, 2026 03:00
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.

1 participant