eslint-plugin-angular
Advanced tools
Comparing version 4.0.1 to 4.1.0
{ | ||
"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; |
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
81
4901
217388