Skip to content

fix(lint): flag digit-leading element ids#2222

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/digit-leading-id-lint
Jul 11, 2026
Merged

fix(lint): flag digit-leading element ids#2222
miguel-heygen merged 1 commit into
mainfrom
fix/digit-leading-id-lint

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Digit-leading element IDs now produce an actionable lint warning before querySelector('#123-frame') crashes at runtime. The warning recommends a letter-prefixed ID or CSS.escape() and leaves safe IDs untouched.

Verified against Chromium’s real SyntaxError, the full lint suite (353/353), lint typecheck, format, oxlint, and lint build.


Compound Engineering
GPT-5_Codex

@github-actions

Copy link
Copy Markdown

Fallow audit report

Found 1 finding.

Details
Severity Rule Location Description
major fallow/high-crap-score packages/lint/src/rules/core.ts:204 '<arrow>' has CRAP score 56.3 (threshold: 30.0, cyclomatic 14)

Generated by fallow.

@miguel-heygen miguel-heygen merged commit d51fa7e into main Jul 11, 2026
38 of 39 checks passed
@miguel-heygen miguel-heygen deleted the fix/digit-leading-id-lint branch July 11, 2026 03:03
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