-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ESLint to v6.2.1 with reverse-patch for eslint/eslint#12055
- Loading branch information
1 parent
6f2cda8
commit 4f208c5
Showing
3 changed files
with
438 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/eslint/lib/rules/no-unused-vars.js b/node_modules/eslint/lib/rules/no-unused-vars.js | ||
index 8094de5..48df3aa 100644 | ||
--- a/node_modules/eslint/lib/rules/no-unused-vars.js | ||
+++ b/node_modules/eslint/lib/rules/no-unused-vars.js | ||
@@ -507,7 +507,7 @@ module.exports = { | ||
const childScopes = scope.childScopes; | ||
let i, l; | ||
|
||
- if (scope.type !== "global" || config.vars === "all") { | ||
+ if (scope.type !== "TDZ" && (scope.type !== "global" || config.vars === "all")) { | ||
for (i = 0, l = variables.length; i < l; ++i) { | ||
const variable = variables[i]; | ||
|
Oops, something went wrong.