Skip to content

Conversation

@frankieyan
Copy link
Member

@frankieyan frankieyan commented Jan 19, 2026

Integrates react-compiler-tracker into our development workflow to catch React Compiler regressions early:

  • Pre-commit hook: Runs on staged source files and blocks commits that introduce new violations
  • CI: Checks changed files in PRs (read-only, doesn't modify the records file)

Note that this bumps the node version requirement to the most recent LTS under v22, hence the breaking change.

Test plan

Local (pre-commit):

  1. Temporarily comment out eslint from lint-staged.config.js
  2. Add a rule violation to a component (e.g. reading ref.current during render)
  3. Stage and commit — should fail with an error count increase
image

CI:

  1. Push a commit with --no-verify that introduces a new violation
  2. Open a PR and verify the "Check React Compiler compatibility" step fails
image

https://github.com/Doist/reactist/actions/runs/21158116009/job/60846968211?pr=996

Copy link

@doist-bot doist-bot bot left a comment

Choose a reason for hiding this comment

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

The integration of react-compiler-tracker logic into CI and pre-commit hooks looks logically sound. However, there is a critical configuration issue regarding the Node.js version: the PR specifies version 22.22, which does not exist (current LTS is v22.14.x), and the new dependency enforces this invalid version in its engine requirements. This will cause the CI pipeline and package installation to fail.

@frankieyan frankieyan changed the title Integrate react-compiler-tracker into pre-commit and CI chore: Integrate react-compiler-tracker into pre-commit and CI Jan 19, 2026
@frankieyan frankieyan requested review from a team and gnapse and removed request for a team January 20, 2026 03:11
@frankieyan frankieyan added the 👀 Show PR Used for PRs that need a review, but can be merged when CI is green. label Jan 20, 2026
Copy link
Contributor

@gnapse gnapse left a comment

Choose a reason for hiding this comment

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

@frankieyan frankieyan changed the title chore: Integrate react-compiler-tracker into pre-commit and CI chore!: Integrate react-compiler-tracker into pre-commit and CI Jan 20, 2026
@frankieyan frankieyan changed the title chore!: Integrate react-compiler-tracker into pre-commit and CI chore!: Bump node version requirement to v22.22; integrate react-compiler-tracker Jan 21, 2026
frankieyan and others added 6 commits January 21, 2026 10:52
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bump minimum Node.js version from ^22.14.0 to ^22.22.0 to align with
the @doist/react-compiler-tracker dependency requirement.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@frankieyan frankieyan force-pushed the frankieyan/react-compiler-tracker branch from 457a385 to 4650db7 Compare January 21, 2026 18:53
@frankieyan frankieyan enabled auto-merge (squash) January 21, 2026 18:53
@frankieyan frankieyan merged commit ee3b106 into main Jan 21, 2026
6 checks passed
@frankieyan frankieyan deleted the frankieyan/react-compiler-tracker branch January 21, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👀 Show PR Used for PRs that need a review, but can be merged when CI is green.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants