You probably noticed that even in version 2.5.0 of ember-cli the default JS linter is JSHint - and there's nothing wrong with this. But what if we're using ES6 and Babel which are not fully supported by JSHint? Luckily for us - there's a great solution out there called ESLint. I'll show you how to use it in your Ember project.
Setting up ESLint is pretty easy, all we have to do is to install a few packages, customise our config and then remove JSHint from the test suite.
As you can see, we no longer have JSHint, and it’s been replaced by ESLint.
That's it! You've installed ESLint as your default linter. The last thing you will likely want to do is to customise the ESLint config to fit your needs. You can do this from scratch, following the great ESLint guide or use some existing config from the web. I personally recommend using eslint-airbnb-config as a starting point and then, if needed, customising it using .eslintrc.
In the next post we’re going to tell you a little bit more about code quality and show you our approach to make sure your Ember code is of great quality.