eslint-plugin-angular
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -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, |
{ | ||
"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) | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163528
103
3000
193