This repository will give access to new rules for the ESLint tool. You should use it only if you are developping an AngularJS application.
The angular.element method should be used of the $ or jQuery object (if you are using jQuery of course). If the jQuery library is imported, angular.element will be a wrapper around the jQuery object.
All your controllers should have a name starting the parameter you can define in your config object
{ "rules": { "ng_controller_name": [2, "ng"] } }
You should use the angular.isUndefined or angular.isDefined methods instead of using the keyword undefined (myVar === undefined)
All your directives should have a name starting the parameter you can define in your config object
{ "rules": { "ng_directive_name": [2, "ng"] } }
All your filters should have a name starting the parameter you can define in your config object
{ "rules": { "ng_filter_name": [2, "ng"] } }
Watch and On methods on the scope object should be assigned to a variable, in order to be deleted in a $destroy event handler
All your services should have a name starting the parameter you can define in your config object
{ "rules": { "ng_service_name": [2, "ng"] } }
You should use the angular.isArray method instead of the default JavaScript implementation (typeof [] === "[object Array]").
You should use the angular.isBoolean method instead of the default JavaScript implementation (typeof true === "[object Boolean]").
You should use the angular.isDate method instead of the default JavaScript implementation (typeof new Date() === "[object Date]").
You should use the angular.isFunction method instead of the default JavaScript implementation (typeof function(){} ==="[object Function]").
You should use the angular.isNumber method instead of the default JavaScript implementation (typeof 3 === "[object Number]").
You should use the angular.isObject method instead of the default JavaScript implementation (typeof {} === "[object Object]").
You should use the angular.isString method instead of the default JavaScript implementation (typeof "" === "[object String]").