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 , Front-end software engineer, tinkerer and master of the arcane arts. You should follow him on Twitter where he shares useful stuff!Follow @vintharas