You should use the angular.forEach method instead of the default JavaScript implementation [].forEach.
Rule based on Angular 1.x
The following patterns are considered problems;
/*eslint angular/foreach: 2*/
// invalid
someArray.forEach(function (element) {
// ...
}); // error: You should use the angular.forEach method
The following patterns are not considered problems;
/*eslint angular/foreach: 2*/
// valid
angular.forEach(someArray, function (element) {
// ...
});
This rule was introduced in eslint-plugin-angular 0.1.0