eslint-config-netguru-ember
v2.0.0
Published
Eslint config for Netguru Ember Style Guide
Downloads
3
Maintainers
Readme
eslint-config-netguru-ember
ESlint shareable config for eslint-plugin-netguru-ember
Summary
It's a shareable config that extends AirBnB Config with rules from our eslint-plugin-netguru-ember. This is recommended by us config for any Ember Application. It assures that your code is in great shape and that you're following all good standards from AirBnB's JavaScript Styleguide and our Ember Styleguide.
Requirements
You need to have ember-cli-eslint
installed in your app. More info here.
Usage
1. Install all dependencies by simply pasting code below in your terminal
(
export PKG=eslint-config-netguru-ember;
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
)
This command will basically produce and call something like this:
npm install --save-dev eslint-config-netguru-ember [email protected] eslint-config-airbnb-base@^7.1.0 eslint-plugin-import@^1.15.0
2. Change your .eslintrc
, so it looks like this:
extends: netguru-ember
You can find more informations about rules we provide here.
All rules and settings from index.js
can be overriden in your .eslintrc
.
So if you for example want to disable the rule netguru-ember/local-modules
your .eslintrc
should look like this:
extends: netguru-ember
rules:
netguru-ember/local-modules: 0