eslint-plugin-prefer-let
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -49,3 +49,2 @@ /** | ||
VariableDeclaration(node) { | ||
var scopeType = context.getScope().type; | ||
if (node.kind === 'var') { | ||
@@ -57,3 +56,2 @@ context.report({ | ||
} else if (node.kind !== 'let' && !isTopLevelScope(node)) { | ||
console.log(context.getScope().type); | ||
context.report({ | ||
@@ -60,0 +58,0 @@ message: '`const` declaration outside top-level scope', |
{ | ||
"name": "eslint-plugin-prefer-let", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Rule to prefer using `let` to bind names to values", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
7419
138