Skip to content

Commit

Permalink
Update ESLint to v6.2.1 with reverse-patch for eslint/eslint#12055
Browse files Browse the repository at this point in the history
  • Loading branch information
fetus-hina committed Aug 21, 2019
1 parent 6f2cda8 commit 4f208c5
Show file tree
Hide file tree
Showing 3 changed files with 438 additions and 7 deletions.
13 changes: 13 additions & 0 deletions data/patch/npm/eslint+6.2.1.patch
@@ -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];

0 comments on commit 4f208c5

Please sign in to comment.