Barbaric Tip of the Week is a weekly series whose main purpose is to share tiny bits of knowledge that I find specially useful and interesting.
Now you can get started with eslint by installing it via npm:
$ npm install -g eslint
And just typing:
$ eslint --init
You can get your code analyzed and be offered some suggestions, or select popular style guides (like Google’s) or just answer questions regarding your preferences:
Awesome right? That’s a nice developer experience right here. So now go forth and lint.
Written by Jaime González García , dad, husband, software engineer, ux designer, amateur pixel artist, tinkerer and master of the arcane arts. You can also find him on Twitter jabbering about random stuff.