r/webdev • • 21d ago

Problem with concurrent linter fixes

https://jfmengels.net/concurrent-linter-fixes/
0 Upvotes

9 comments sorted by

View all comments

1

u/ProfessionalNet5513 21d ago

this is why I dont let èslint --fix`run on a whole repo in one shot. the two fixes dont overlap textually so the linter applies both, àverage`gets deleted while something still calls it, and then the second pass decides `sum`can go too. now the diff has three unrelated changes and one of them doesnt compile. run it one file at a time and actually read the output, or spend the afternoon bisecting a commit that only touched a variable name. half these configs have fixable rules that fight each other and nobody notices until the build is green but the code is wrong