Repository navigation
chore(lint): drop Theme.tsx's dead sites from the attribute baseline - #11314
Conversation
Theme.tsx no longer writes two of its data-astryx-id sites and one of its data-astryx-theme-prose sites, so the private-attribute rule's baseline drops those three allowances. The rule's baseline script now reports the list up to date.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 6f088f2 |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because every job skips while the pull request is a draft; it runs once the pull request is marked ready for review.
The three removed Theme.tsx entries are exactly the allowances left behind when #10178 deleted the file's two style[…] lookups, and the two data-astryx-id entries and one data-astryx-theme-prose entry that remain match the file's sites at lines 155, 156 and 167. There are no blocking findings.
Claims and files checked
- Claim: the baseline still allowed two
data-astryx-idsites and onedata-astryx-theme-prosesite inTheme.tsxthat no longer exist: verified; the file writes those names only at lines 155, 156 and 167. - Claim: #10178 removed those sites, the two
style[…]lookups, and left their entries: verified in that change's diff, which did not touch the baseline. - Claim: the remaining three entries match two
dataAttr('id')calls and onedataAttr('theme-prose')call: verified. - Claim: the rule's README says to remove an entry when its site moves and never add one: verified.
- Claim: the baseline check fails before the change and passes after it: verified; the new baseline matches every private site in the script's scope (37 files), and the old one differs only by these three entries.
- Claim: lint data only, with no product, public API or CI impact: verified; only the lint config and the baseline script read the file.
- Claim: the rule's tests number 75: verified by count; neither the rule nor its tests change.
- Claim: strict lint has no errors: verified for this change, since the three remaining sites use exactly the three remaining entries; the warning tally on main was not reproduced.
- Claim: Changeset coverage and public text checks pass: verified; a path outside every package needs no Changeset, and the title, description, branch and commit message carry nothing internal.
- Claim: three lines removed in one file: verified.
- File
internal/eslint-plugin-astryx/no-raw-private-attribute.baseline.json: clear.
Main brings in meta#11304, which drops CheckboxInput's and RadioListItem's entries from the same lint baseline in another hunk. The merge needs no hand edit, and the baseline script reports the merged list up to date.
|
/approve-spec 5aa7faa |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because every job skips while the pull request is a draft; it runs once the pull request is marked ready for review.
The merge of main leaves this change's own patch untouched, and the three removed Theme.tsx entries are still exactly the allowances left behind when #10178 deleted the file's two style[…] lookups; the merged baseline matches every private-attribute site in the lint's scope. There are no blocking findings.
Claims and files checked
- Claim: the baseline still allowed two
data-astryx-idsites and onedata-astryx-theme-prosesite inTheme.tsxthat no longer exist: verified; the file writes those names only at lines 155, 156 and 167. - Claim: #10178 removed those sites, the two
style[…]lookups, and left their entries: verified in that change's diff, which did not touch the baseline. - Claim: the remaining three entries match two
dataAttr('id')calls and onedataAttr('theme-prose')call: verified. - Claim: the rule's README says to remove an entry when its site moves and never add one: verified.
- Claim: the baseline check fails before the change and passes after it, also on the merged head, and regenerating the list changes nothing: verified; the merged baseline matches every private site in the script's scope (35 files) in the order the script writes it, and main's differs only by these three entries.
- Claim: the merge of main brings in another change's removal of CheckboxInput's and RadioListItem's entries in a separate hunk, needs no hand edit, and keeps this change's own patch: verified.
- Claim: lint data only, with no product, public API or CI impact: verified; only the lint config and the baseline script read the file.
- Claim: the rule's tests number 75: verified by count; neither the rule nor its tests change.
- Claim: strict lint has no errors, with main's warning count: verified for this change, since the three remaining sites use exactly the three remaining entries; the warning count was not reproduced.
- Claim: the knowledge check passes: verified as unaffected; no record changes and the check does not read this file.
- Claim: Changeset coverage and public text checks pass: verified; a path outside every package needs no Changeset, and the title, description, branch and commit messages carry nothing internal.
- Claim: three lines removed in one file: verified.
- File
internal/eslint-plugin-astryx/no-raw-private-attribute.baseline.json: clear.
Maintainer impact
The private-attribute lint rule's baseline is a counted allowance per file. It still allows two
data-astryx-idsites and onedata-astryx-theme-prosesite inTheme.tsxthat no longer exist, so the rule would accept that many new raw sites there. #10178 removed those sites, the twostyle[…]lookups, and left their entries.Intended invariant
The baseline lists exactly the sites that exist, so a moved site never stays allowed. The rule's README: "remove an entry when you move its site, and never add one."
Change
internal/eslint-plugin-astryx/no-raw-private-attribute.baseline.jsondrops twodata-astryx-identries and onedata-astryx-theme-proseentry forpackages/core/src/theme/Theme.tsx. Its remaining three entries match the file's twodataAttr('id')calls and onedataAttr('theme-prose')call.Evidence
node internal/eslint-plugin-astryx/no-raw-private-attribute.baseline.mjs --checkreports the baseline out of date.Scope
Components: none (lint tooling)
Testing
node internal/eslint-plugin-astryx/no-raw-private-attribute.baseline.mjs --check: up to date.pnpm exec vitest run internal/eslint-plugin-astryx/no-raw-private-attribute.test.mjs: 75 tests.pnpm lint:strict: 0 errors, with main's 236 warnings.At 5aa7faa, which merges main 2aa31a3: the baseline script reports the list up to date, and regenerating it changes nothing. The rule's tests pass 75,
pnpm lint:stricthas 0 errors with main's 237 warnings, andpnpm check:knowledge, the Changeset coverage and public text checks pass.Public and internal API delta
Public: none. Internal: none.
Size: −3 lines in 1 file (2aa31a3..5aa7faa).
History