eslint-scope
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -0,1 +1,5 @@ | ||
v4.0.3 - March 15, 2019 | ||
* [`299df64`](https://github.com/eslint/eslint-scope/commit/299df64bdafb30b4d9372e4b7af0cf51a3818c4a) Fix: arrow function scope strictness (take 2) (#52) (futpib) | ||
v4.0.2 - March 1, 2019 | ||
@@ -2,0 +6,0 @@ |
@@ -52,7 +52,2 @@ /* | ||
// ArrowFunctionExpression's scope is always strict scope. | ||
if (block.type === Syntax.ArrowFunctionExpression) { | ||
return true; | ||
} | ||
if (isMethodDefinition) { | ||
@@ -71,2 +66,6 @@ return true; | ||
if (scope.type === "function") { | ||
if (block.type === Syntax.ArrowFunctionExpression && block.body.type !== Syntax.BlockStatement) { | ||
return false; | ||
} | ||
if (block.type === Syntax.Program) { | ||
@@ -73,0 +72,0 @@ body = block; |
@@ -6,3 +6,3 @@ { | ||
"main": "lib/index.js", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=4.0.0" |
76956
1867