DEV Community

Discussion on: Writing modern JavaScript code

Collapse
 
ethan profile image
Ethan Stewart

I would argue that in a lot of cases, code that breaks from changing == with === probably stands in need of some improvement anyway. Just IMHO

Collapse
 
brunojennrich profile image
bruno jennrich

legacy code?

Thread Thread
 
ethan profile image
Ethan Stewart

Valid exception to the rule, but unless you're going to update and change it, you probably don't need to lint legacy code, which was the context in which the original post mentioned replacing == with ===