eslint-plugin-angular
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"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 @@ |
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
197485