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 0.2.2 to 0.2.3

2

package.json
{
"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){});',

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