Use this checklist to migrate with low risk.
Migration checklist
- Upgrade ESLint major version:
npm install --save-dev eslint@^9 - Create
eslint.config.jsoreslint.config.mjs - Translate legacy
extends,plugins, andoverridesinto flat-config entries - Remove
.eslintrc*and deprecated ignore files once parity is verified - Run lint and compare issue count before/after migration
- Fix rule parity gaps explicitly in config
- Update CI scripts to call
eslint .
Pitfalls to avoid
- Mixing legacy and flat config in the same project
- Forgetting to disable base rules when TS variants are enabled
- Assuming plugin presets are flat-config compatible without checking docs
- Migrating config and rule semantics in a single large change without validation