Skip to content

chore(lint): drop Theme.tsx's dead sites from the attribute baseline - #11314

Merged
cixzhang merged 2 commits into
meta:mainfrom
vjeux:lint/theme-baseline-dead-sites
Nov 12, 2026
Merged

cixzhang merged 2 commits into
meta:mainfrom
vjeux:lint/theme-baseline-dead-sites

Conversation

@vjeux

@vjeux vjeux commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer impact

The private-attribute lint rule's baseline is a counted allowance per file. It still allows two data-astryx-id sites and one data-astryx-theme-prose site in Theme.tsx that no longer exist, so the rule would accept that many new raw sites there. #10178 removed those sites, the two style[…] 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.json drops two data-astryx-id entries and one data-astryx-theme-prose entry for packages/core/src/theme/Theme.tsx. Its remaining three entries match the file's two dataAttr('id') calls and one dataAttr('theme-prose') call.

Evidence

  • Failure before the change: on main a709f9a, node internal/eslint-plugin-astryx/no-raw-private-attribute.baseline.mjs --check reports the baseline out of date.
  • Success after the change: the same command reports it up to date.
  • Product/runtime behavior verified unchanged: lint data only.
  • CI impact: none.

Scope

Components: none (lint tooling)

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

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.
  • The Changeset coverage and public text checks pass.

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:strict has 0 errors with main's 237 warnings, and pnpm 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

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.
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 12, 2026 10:35am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 11, 2026
@astracat-bot

astracat-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 12, 2026, 10:43 AM UTC

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 6f088f2

@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 11, 2026
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 5aa7faa

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-id sites and one data-astryx-theme-prose site in Theme.tsx that 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 one dataAttr('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.

Automated review (maintainer link)

@vjeux
vjeux marked this pull request as ready for review November 11, 2026 21:23
@vjeux
vjeux marked this pull request as draft November 12, 2026 04:27
@vjeux
vjeux marked this pull request as ready for review November 12, 2026 04:27
@vjeux vjeux closed this Nov 12, 2026
@vjeux vjeux reopened this Nov 12, 2026
@vjeux
vjeux marked this pull request as draft November 12, 2026 05:35
@vjeux
vjeux marked this pull request as ready for review November 12, 2026 05:36
@vjeux
vjeux marked this pull request as draft November 12, 2026 06:19
@vjeux vjeux closed this Nov 12, 2026
@vjeux vjeux reopened this Nov 12, 2026
@vjeux
vjeux marked this pull request as ready for review November 12, 2026 06:21
@vjeux
vjeux marked this pull request as draft November 12, 2026 10:13
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.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 5aa7faa

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-id sites and one data-astryx-theme-prose site in Theme.tsx that 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 one dataAttr('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.

Automated review (maintainer link)

@vjeux
vjeux marked this pull request as ready for review November 12, 2026 10:54
@cixzhang
cixzhang merged commit 09dafe8 into meta:main Nov 12, 2026
119 checks passed
@vjeux
vjeux deleted the lint/theme-baseline-dead-sites branch November 12, 2026 11:43

This branch was successfully deployed

1 active deployment
Preview — 5aa7faac Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants