Socket
Socket
Sign inDemoInstall

eslint-plugin-angular

Package Overview
Dependencies
1
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "eslint-plugin-angular",
"version": "0.2.0",
"version": "0.2.1",
"description": "ESLint rules for AngularJS projects",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -106,3 +106,3 @@ (function(){

isAngularRunSection: function(node){
return this.isMemberExpression(node.callee) && node.callee.property.type === 'Identifier' && node.callee.property.name === 'run';
return this.isMemberExpression(node.callee) && node.callee.property.type === 'Identifier' && node.callee.property.name === 'run' && (node.callee.object.type === 'Identifier' && node.callee.object.name !== 'mocha');
},

@@ -109,0 +109,0 @@

@@ -89,2 +89,5 @@ //------------------------------------------------------------------------------

args: [1, 'array']
}, {
code: 'mocha.run();',
args: [1, 'array']
})

@@ -91,0 +94,0 @@ //------------------------------------------------------------------------------

@@ -36,3 +36,4 @@ //------------------------------------------------------------------------------

'it("test", function(){})',
'$provide.value("accountsService", accountsService)'
'$provide.value("accountsService", accountsService)',
'mocha.run();',
],

@@ -39,0 +40,0 @@ invalid: [{

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc