DEV Community

Discussion on: 5 easy wins for cleaner Javascript code 🧹

Collapse
 
joepio profile image
Joep Meindertsma

Instead of trying to remember all these, you could use a linter with some sane linting configuration. That way, your editor will tell you whenever you're using a var or have unmerged imports,

Collapse
 
mlevkov profile image
Mikhail Levkovsky

100%. Although I’m not a fan of angular, their linting rules is usually what I follow. This article tries to also demonstrate the why behind the how. I think just slapping on a linter without understanding why isn’t very good