@elfinct/eslint-plugin-elfin
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -64,7 +64,3 @@ "use strict"; | ||
// 身份标明为console | ||
var isNameConsole = reference.identifier.name === 'console'; | ||
if (!isNameConsole) | ||
return false; | ||
// 是否允许使用 | ||
return !isAllowed(reference); | ||
return reference.identifier.name === 'console'; | ||
} | ||
@@ -81,3 +77,4 @@ /** | ||
var isTryCatch = isTryCatchBlock(node); | ||
return isMemberExpression && isCommonNode && !isTryCatch; | ||
// isAllowed 是否允许使用 | ||
return isMemberExpression && isCommonNode && !isAllowed(reference) && !isTryCatch; | ||
} | ||
@@ -84,0 +81,0 @@ /** |
{ | ||
"name": "@elfinct/eslint-plugin-elfin", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
35834
881