Rule adoption checklist
Use this checklist when rolling out one or more rules across an existing codebase.
Before enabling rulesโ
- Identify the target package/folder scope.
- Run ESLint in report-only mode to estimate violation count.
- Confirm your CI, tests, and typecheck are green before refactoring.
- Decide whether this rollout is autofix-first or manual-first.
During migrationโ
- Apply changes in small batches (per folder/package).
- Keep each PR focused on one rule family when possible.
- Re-run tests and typecheck after each batch.
- Flag behavior-sensitive replacements for reviewer attention.
After migrationโ
- Switch rule severity from
warntoerror. - Remove local disables added during migration.
- Add one representative example to internal team docs.
- Track regressions by keeping the rule enabled in CI.
Suggested PR checklistโ
- Only target files for this migration are changed.
- Tests pass after each replacement batch.
- Typecheck passes after each replacement batch.
- Reviewer notes include runtime-sensitive replacements.
- Final lint run has no new violations for the migrated rule(s).