I haven’t posted anything for months, and I want to change that soon. But, as my time is limited recently I want to start small. Just a quick tip for today. I have been struggling with some obstacles when switching from jshint to eslint in my Ember projects, whether due to updated Ember library, cli, or some other not so well documented changes. However, now it seems to be a really easy job to do.
Just a few quick steps
- install eslint
npm install eslint --save-dev
ember install ember-cli-eslint
- that’s it. You can start configuring
- if you want to use plugins
npm install eslint-plugin-import --save-dev
My go for configuration for ember projects is based on
airbnb-base style guides.
You will also need to install a couple more things.
And my entire
I hope some of you find this post helpful.