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 4.0.1 to 4.1.0

.idea/codeStyles/codeStyleConfig.xml

2

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

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

@@ -37,2 +37,3 @@ /**

var angularObjectList = ['animation', 'config', 'constant', 'controller', 'directive', 'factory', 'filter', 'provider', 'service', 'value', 'decorator'];
var reservedNameList = ['_'];
var configType = context.options[0] || 'named';

@@ -49,2 +50,6 @@ var messageByConfigType = {

if (context.options[2]) {
reservedNameList = context.options[2];
}
function checkType(arg) {

@@ -64,2 +69,6 @@ return utils.isCallExpression(arg) ||

if (utils.isAngularComponent(node) && callee.type === 'MemberExpression' && angularObjectList.indexOf(angularObjectName) >= 0) {
if (reservedNameList.indexOf(callee.object.name) !== -1) {
return;
}
if (checkType(firstArgument)) {

@@ -66,0 +75,0 @@ return;

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