How to auto-fix JavaScript typos

Speed up your development and reduce your cognitive load

Josh Rose
Author
Josh Rose
Published
Apr 18, 2018
Topics
Industry

I’m a lazy developer. I’m happy to admit that. The less code I have to write, the better I feel about life.

I’m also a big believer in letting your tools do the work for you, so I was extra happy when I found out that the eslint plugin for Atom has the option to automagically fix my mistakes when I save my code. You can even tell it to ignore the problems that it can fix, so you don’t even have to see them, which means you don’t have to think about them!

Fixing errors on save? Ignore the errors you can fix while I type? Oh. My.Fixing errors on save? Ignore the errors you can fix while I type? Oh. My.

Ticking those two little checkboxes means I write less code and the magic computer does more for me, but most importantly, it means I make less mistakes. And when you’re bashing out that bug fix at midnight, the less you have to think the better.