Shared configurations for linting with ESLint used by NCR's Connections team. The current (4.x) release supports ESLint 1.x.
Whilst these rules mandate 2-space indentation, mandatory semi-colons and single quote strings they do not enforce any style beyond that, concentrating instead on rules that catch errors.
$ npm install --save-dev eslint eslint
To use the AngularJS specific rules:
$ npm install --save-dev eslint-plugin-angular
To enable the default rules, simply extend them in your eslint rc, for example with YAML:
extends: connections
To use the angular-specific rules extend the angular rules within your eslintrc file:
extends: connections/angular