eslint-plugin-angular
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "eslint-plugin-angular", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "ESLint rules for AngularJS projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,3 +36,3 @@ module.exports = function(context) { | ||
var callee = node.callee, | ||
angularObjectName = callee.property.name, | ||
angularObjectName = callee.property && callee.property.name, | ||
firstArgument = node.arguments[1]; | ||
@@ -39,0 +39,0 @@ |
@@ -59,2 +59,10 @@ //------------------------------------------------------------------------------ | ||
valid.push({ | ||
code: 'var cleanUp;cleanUp = $rootScope.$on("$stateChangeSuccess", function () {vm.currentHor = $state.$current.path[0].self.name;});$scope.$on("$destroy", function () {cleanUp();});', | ||
args: [1, 'named'] | ||
}, { | ||
code: 'var cleanUp;cleanUp = $rootScope.$on("$stateChangeSuccess", function () {vm.currentHor = $state.$current.path[0].self.name;});$scope.$on("$destroy", function () {cleanUp();});', | ||
args: [1, 'anonymous'] | ||
}); | ||
invalid.push({ | ||
@@ -61,0 +69,0 @@ code: 'app.controller("name", function(Service1){});', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148206
2644