Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1843·react-doctor

Disable rule `react-doctor/require-pnpm-hardening` by default

Author: Arcadi4Created Sep 28, 2026Updated Sep 28, 2026

react-doctor/require-pnpm-hardening enforces a 7-day minimum release age and trustPolicy: no-downgrade. This is not helpful in most cases and could break the codebase:

  • pnpm already has a built-in 48-hour minimum release age requirement. That should prevent most supply chain attacks. Raising it to 7 days will work against security, as the latest CVE patches cannot arrive in time.
  • Both may break Dependabot, e.g., build failures in Dependabot PRs.
  • Enabling the minimum release age can break the build immediately. Immediate fixes involve inflating pnpm-workspace.yaml with minimum-age bypasses or downgrading dependencies. Both are undesirable: the former becomes a supply chain risk if not cleaned up on time; the latter can break the repo due to new feature losses.
  • Similar for trustPolicy: no-downgrade. It may trigger ERR_PNPM_TRUST_DOWNGRADE, and the user must downgrade dependencies.
  • Makes dependency management generally less versatile.

Proposed fixes:

  • Disable or remove this rule completely
  • Instead of recommending a 7-day minimum release, check if this limit was set to < 48 hours.
  • Cancel the requirement for trustPolicy: no-downgrade

Source: millionco/react-doctor

View original on GitHubView discussion on GitHub