Skip to main content

Preset selection strategy

The package exposes stable presets for staged runtime-cleanup adoption.

  1. Use runtime-cleanup.configs.recommended for broad, low-noise checks.
  2. Configure TypeScript parser services in your own flat config, then add runtime-cleanup.configs["recommended-type-checked"] when type-aware rules are useful.
  3. Evaluate runtime-cleanup.configs.strict only after recommended findings are clean.
  4. Use runtime-cleanup.configs.experimental in narrow CI jobs or local audits before making it a default.

Direct rule enablementโ€‹

For early rollout, enabling one concrete rule at a time is usually better than turning on a broader preset. That gives reviewers a clear resource category and cleanup strategy to evaluate.