Preset selection strategy
The package exposes stable presets for staged runtime-cleanup adoption.
Recommended pathโ
- Use
runtime-cleanup.configs.recommendedfor broad, low-noise checks. - Configure TypeScript parser services in your own flat config, then add
runtime-cleanup.configs["recommended-type-checked"]when type-aware rules are useful. - Evaluate
runtime-cleanup.configs.strictonly after recommended findings are clean. - Use
runtime-cleanup.configs.experimentalin 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.