TIL: How to auto-fix JavaScript typos

Josh Rose
Etch
Published in
1 min readApr 18, 2018

Speed up your development and reduce your cognitive load

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.

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.

We love writing clean code at Etch.

Let’s see if we can write some for you; hey@etch.co

--

--

Etch
Etch

Published in Etch

Software Design Studio: We help Startups launch new products, and work with established Dotcoms to improve their existing tools and services.

Josh Rose
Josh Rose

Written by Josh Rose

I build progressive web apps for @etch. React + GraphQL + DataLoader 😍 https://joshthewanderer.com