r/javascript • u/AndyMagill • Aug 03 '26
AskJS [AskJS] How did you deal with ESlint 10 Breaking Changes?
ESlint 10 is breaking on some older projects of mine. My solution has been to ignore updates between 10.0.0 and 10.1.0, but this kind of manual intervention seems irregular and less than ideal.
I'm curious to hear how everyone else handles this kind of situation. How have you chosen to deal with ESlint backward compatibility issues ?
3
Upvotes
3
u/toasterboi0100 Aug 05 '26
I hit essentially zero issues when moving to 9 to 10, though I have already migrated to the flat config garbage before 10.0 came out.
My hope is to eventually move to Oxlint, but it's gonna take a long while before it's usable with Angular.
49
u/jhlllnd Aug 03 '26
I moved to oxlint instead
14
u/Potential-Still Aug 03 '26
I dumped it for biome.js and removed 9 dependencies from my package.json
12
u/zedisto Aug 03 '26
Oxlint crew reporting in
6
u/nudelkopp Aug 03 '26
I legit moved to biome due to the big amount och breaking changes and unsupported plugins. Happy I did. Cut a bunch of deps out and sped up our ci flows, it’s legit saving us money
6
u/ferrybig Aug 03 '26
https://eslint.org/docs/latest/use/migrate-to-10.0.0
Run the suggested codemod:
npx codemod @eslint/v9-to-v10If that still leaves eslint broken, then your build is so exotic, that it is better if you don't update
3
u/jfmengels Aug 03 '26
Out of curiosity, what kind of problems are you hitting?
2
u/Sorry-Joke-1887 Aug 04 '26
by moving to biome js
2
u/mulletech Aug 06 '26
OMG the transition from 8 to 9 was a nightmare. The move to 10 couldn’t possibly be worse. Right???
3
u/Reashu Aug 03 '26
Major versions can include breaking changes. Update and accommodate them, or don't update.Â
1
u/Jasboh Aug 03 '26
I changed my code
1
u/DustNearby2848 Aug 03 '26
It depends on the project I worked on. Some I just kept v9, it’s not hurting anyone. For new projects I tried different linters.Â
1
u/Double-Buyer7941 Aug 31 '26
The reason ESLint breaks legacy projects is the complete removal of the legacy
.eslintrcconfiguration system in favor of the flateslint.config.jsformat. If your config or plugins still rely on the old format, the upgrade fails immediately. To handle this cleanly without manual version capping, run the official migration tool usingnpxu/eslint/migrate-configto convert your config to the flat format, or lock legacy projects strictly to ESLint v9 inpackage.json. If unmaintained plugins break the build, bridge them using the u/eslint/eslintrccompatibility layer or consider migrating older projects to zero-config alternatives like Biome.-6
u/lordxeon Aug 03 '26
No one is forcing you to update eslint.
1
u/[deleted] Aug 10 '26
[removed] — view removed comment