DEV Community

Discussion on: One bite at a time - How to introduce new lint rules in a large codebase

Collapse
 
christiankohler profile image
Christian Kohler

Thank you. I honestly don’t know all the edge cases of auto fixing and I agree that has to be used with caution.

Your example would be fine for me since const only checks if the reference changes (or if it is a primitive it would behave as you would expect and checks the value). I use const almost exclusively. But I guess that’s also personal style.