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.5.0 to 0.6.0

rules/ng_di_order.js

2

index.js

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

'ng_di': require('./rules/ng_di'),
'ng_di_order': require('./rules/ng_di_order'),
'ng_directive_name': require('./rules/ng_directive_name'),

@@ -56,2 +57,3 @@ 'ng_document_service': require('./rules/ng_document_service'),

'ng_di': [2, 'function'],
'ng_di_order': 0,
'ng_directive_name': 0,

@@ -58,0 +60,0 @@ 'ng_document_service': 2,

2

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

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

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

| 'ng_di': [2, 'function'] | All your DI should use the same syntax : the Array or function syntaxes ("ng_di": [2, "function or array"])|
| 'ng_di_order': 0 | Injected dependencies should be sorted alphabetically. |
| 'ng_directive_name': 0 | All your directives should have a name starting with the parameter you can define in your config object. The second parameter can be a Regexp wrapped in quotes. You can not prefix your directives by "ng" (reserved keyword for AngularJS directives) ("ng_directive_name": [2, "ng"]) [Y073](https://github.com/johnpapa/angular-styleguide#style-y073), [Y126](https://github.com/johnpapa/angular-styleguide#style-y126) |

@@ -86,0 +87,0 @@ | 'ng_document_service': 2 | Instead of the default document object, you should prefer the AngularJS wrapper service $document. [Y180](https://github.com/johnpapa/angular-styleguide#style-y180) |

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