Socket
Socket
Sign inDemoInstall

eslint-plugin-angular

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-angular - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

2

package.json
{
"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$/]
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc