eslint-plugin-angular
Advanced tools
Comparing version 2.4.0 to 2.4.1
{ | ||
"name": "eslint-plugin-angular", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "ESLint rules for AngularJS projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -125,3 +125,3 @@ /** | ||
CallExpression: function(node) { | ||
if (utils.isAngularComponent(node) && utils.isMemberExpression(node.callee)) { | ||
if ((utils.isAngularComponent(node) || utils.isAngularComponentDeclaration(node)) && utils.isMemberExpression(node.callee)) { | ||
var name = node.arguments[0].value; | ||
@@ -128,0 +128,0 @@ var type = componentTypeMappings[node.callee.property.name]; |
@@ -23,3 +23,3 @@ /** | ||
MemberExpression: function(node) { | ||
if (node.property.name !== 'setTimeout') { | ||
if (node.property.name !== 'setTimeout' || !node.object) { | ||
return; | ||
@@ -39,2 +39,6 @@ } | ||
if (!parentNode.object) { | ||
return; | ||
} | ||
if (parentNode.object.type === 'ThisExpression' && parentNode.property.name === '$window') { | ||
@@ -41,0 +45,0 @@ context.report(node, message, {}); |
'use strict'; | ||
module.exports = { | ||
config: [/Provider$/, /$route/], | ||
config: [/Provider$/, /$route/, 'require'], | ||
run: [/mocha/, /Service$/] | ||
}; |
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
284156
4613