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 2.1.0 to 2.2.0

2

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

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

@@ -63,4 +63,4 @@ /**

function checkLiteral(node) {
if (node && node.type !== 'Literal') {
context.report(node, 'Unexpected non-literal value');
if (node && node.type !== 'Literal' && node.type !== 'Identifier') {
context.report(node, 'Unexpected non-literal or identifier value' + node.type);
return false;

@@ -80,3 +80,3 @@ }

}
var value = node.value;
var value = node.value || node.name;
if (lastCorrect === undefined || lastCorrect.localeCompare(value) < 0) {

@@ -108,3 +108,3 @@ lastCorrect = value;

}
var value = node.value;
var value = node.value || node.name;
if (lastCorrect === undefined) {

@@ -111,0 +111,0 @@ lastCorrect = value;

@@ -41,3 +41,3 @@ /**

if (context.options[0] === undefined) {
badServices = ['/\$http/', '/\$resource/', 'Restangular', '/\$q/', '/\$filter/'];
badServices = [/\$http/, /\$resource/, /Restangular/, /\$q/, /\$filter/];
}

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