DEV Community

Discussion on: Enable linting in your React App

Collapse
 
danku profile image
Daniel McMahon

+1 for using eslint on your JS projects. Have you checked out prettier for keeping your code in check as you go? You can configure it to auto format your code on save in certain editors (I use Atom). Definitely worth checking out! github.com/prettier/prettier

Collapse
 
booyaa profile image
Mark Sta Ana

A friend just put me on to prettier, with its integration w/ eslint. It looks like a match made in heaven!

Collapse
 
danku profile image
Daniel McMahon

Imagine now a world with eslint, prettier and a package like pre-commit where your linting runs automatically before being able to push your code to a branch! npmjs.com/package/pre-commit