The following code is considered a violation of angular/ng_di
(function() {
'use strict';
angular.module('SomeApp.constants', [])
.config(configure);
function configure($provide) {
$provide.constant('SOME_LIST', ['foo', 'bar']);
}
}());
src/app/constants.js
9:8 error You should use the function syntax for DI angular/ng_di
Thanks