File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-plugin-angular" ,
3
- "version" : " 1.6.3 " ,
3
+ "version" : " 1.6.4 " ,
4
4
"description" : " ESLint rules for AngularJS projects" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ module.exports = {
107
107
return ;
108
108
}
109
109
}
110
- } else {
110
+ } else if ( fn . params . length > 0 ) {
111
111
report ( fn ) ;
112
112
}
113
113
} else if ( fn . params && fn . params . length !== 0 ) {
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ angularObjectList.forEach(function(object) {
38
38
} , {
39
39
code : 'angular.module("myModule").' + object + '(myFunction);function MyFunction() {}' ,
40
40
options : [ 'function' ]
41
+ } , {
42
+ code : 'angular.module("myModule").' + object + '(myFunction);function myFunction() {}' ,
43
+ options : [ '$inject' ]
41
44
} , {
42
45
code : 'angular.module("myModule").' + object + '(myFunction);myFunction.$inject=[];function myFunction() {}' ,
43
46
options : [ '$inject' ]
You can’t perform that action at this time.
0 commit comments