Redteal's ESLint 2.x config
npm install --save-dev eslint eslint-config-redtealWe export two ESLint configs for your usage.
Our default export extends Airbnb's rules, including ECMAScript 2015+, with the tweaks below.
Add "extends": "redteal" to your .eslintrc
| Rule | airbnb-base | redteal |
|---|---|---|
| global-require | error | off |
| no-shadow | error | off |
| no-underscore-dangle | error | off |
| sort-imports | off | error |
See eslint-config-airbnb-base and Airbnb's styleguide for more information.
Extends both the base config and eslint-config-angular to offer additional rules for AngularJS development, with the tweaks below.
Add "extends": "redteal/angular" to your .eslintrc
| Rule | angular | redteal |
|---|---|---|
| angular/no-service-method | error | off |
See eslint-config-angular for more information.