Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.3.1 to 0.4.0

rules/ng_watchers_execution.js

4

index.js

@@ -42,2 +42,3 @@ (function(){

'ng_typecheck_string': require('./rules/ng_typecheck_string'),
'ng_watchers_execution': require('./rules/ng_watchers_execution'),
'ng_window_service': require('./rules/ng_window_service')

@@ -67,3 +68,3 @@ },

'ng_no_cookiestore': 2,
'ng_no_digest': 2,
'ng_no_digest': 0,
'ng_no_jquery_angularelement': 2,

@@ -83,2 +84,3 @@ 'ng_no_private_call': 2,

'ng_typecheck_string': 2,
'ng_watchers_execution': [0, '$destroy'],
'ng_window_service': 2

@@ -85,0 +87,0 @@ }

{
"name": "eslint-plugin-angular",
"version": "0.3.1",
"version": "0.4.0",
"description": "ESLint rules for AngularJS projects",

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

@@ -97,3 +97,3 @@ [![Build Status](https://travis-ci.org/Gillespie59/eslint-plugin-angular.svg?branch=master)](https://travis-ci.org/Gillespie59/eslint-plugin-angular)

| 'ng_no_cookiestore':2 | In Angular 1.4, the $cookieStore service is now deprected. Please use the $cookies service instead|
| 'ng_no_digest': 2 | The scope's $digest() method shouldn't be used. You should prefer the $apply method. |
| 'ng_no_digest': 2 | DEPRECATED! The scope's $digest() method shouldn't be used. You should prefer the $apply method. |
| 'ng_no_jquery_angularelement': 2 | You should not wrap angular.element object into jQuery(), because angular.element already return jQLite element|

@@ -113,2 +113,3 @@ | 'ng_no_private_call': 2 | All scope's properties/methods starting with $$ are used internally by AngularJS. You should not use them directly. |

| 'ng_typecheck_string': 2 | You should use the angular.isString method instead of the default JavaScript implementation (typeof "" === "[object String]"). |
| 'ng_watchers_execution': [0, '$digest'] | For the execution of the watchers, the $digest method will start from the scope in which we call the method. This will cause an performance improvement comparing to the $apply method, who start from the $rootScope |
| 'ng_window_service': 2 | Instead of the default window object, you should prefer the AngularJS wrapper service $window. [Y180](https://github.com/johnpapa/angular-styleguide#style-y180) |

@@ -115,0 +116,0 @@

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