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.6.1 to 0.7.0

rules/ng_file_name.js

2

index.js

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

'ng_empty_controller': require('./rules/ng_empty_controller'),
'ng_file_name': require('./rules/ng_file_name'),
'ng_filter_name': require('./rules/ng_filter_name'),

@@ -62,2 +63,3 @@ 'ng_foreach': require('./rules/ng_foreach'),

'ng_foreach': 0,
'ng_file_name': 0,
'ng_filter_name': 0,

@@ -64,0 +66,0 @@ 'ng_function_type': 0,

2

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

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

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

| 'ng_foreach': 0 | You should use the angular.forEach method instead of the default JavaScript implementation [].forEach. |
| 'ng_file_name': 0 | All your file names should match the angular component name. The second parameter can be a config object [2, {nameStyle: 'dash', typeSeparator: 'dot', ignoreTypeSuffix: true}] to match `avenger-profile.directive.js` or `avanger-api.service.js`. Possible values for `typeSeparator` and `nameStyle` are `dot`, `dash` and `underscore`. The options `ignoreTypeSuffix` ignores camel cased suffixes like `someController` or `myService`. [Y120](https://github.com/johnpapa/angular-styleguide#style-y120) [Y121](https://github.com/johnpapa/angular-styleguide#style-y121) |
| 'ng_filter_name': 0 | All your filters 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. ("ng_filter_name": [2, "ng"]) |

@@ -91,0 +92,0 @@ | 'ng_function_type': 0 | Anonymous or named functions inside AngularJS components. The first parameter sets which type of function is required and can be 'named' or 'anonymous'. The second parameter is an optional list of angular object names. [Y024](https://github.com/johnpapa/angular-styleguide/blob/master/README.md#style-y024) |

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

isAngularModuleDeclaration: function(node){
return this.isAngularComponent(node) && node.callee !== undefined && node.callee.type === 'MemberExpression' && node.callee.property.name === 'module'
return this.isAngularComponent(node) && this.isMemberExpression(node.callee) && node.callee.property.name === 'module'
},

@@ -101,0 +101,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