eslint-plugin-angular-header-interface
Advanced tools
Comparing version
@@ -65,6 +65,10 @@ /** | ||
angularClassKeys = | ||
_.map(firstVariable.init.properties, function(property) { | ||
return property.key.name; | ||
}) | ||
if(_.get(firstVariable, 'init.properties')) { | ||
angularClassKeys = | ||
_.map(firstVariable.init.properties, function(property) { | ||
return property.key.name; | ||
}) | ||
} else { | ||
angularClassKeys = []; | ||
} | ||
@@ -71,0 +75,0 @@ // var a = _.filter(_.get(node, 'parent.arguments[1].body.body'), |
{ | ||
"name": "eslint-plugin-angular-header-interface", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Enforce angular classes to have a strict interface definition on the top by leveraging javascript function hoisting.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
34698
0.42%209
1.95%