Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Chore: Remove TDZ scope type condition from no-unused-vars (#12055)
  • Loading branch information
mdjermanovic authored and aladdin-add committed Aug 13, 2019
1 parent 01d38ce commit 34ccc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-unused-vars.js
Expand Up @@ -507,7 +507,7 @@ module.exports = {
const childScopes = scope.childScopes;
let i, l;

if (scope.type !== "TDZ" && (scope.type !== "global" || config.vars === "all")) {
if (scope.type !== "global" || config.vars === "all") {
for (i = 0, l = variables.length; i < l; ++i) {
const variable = variables[i];

Expand Down

0 comments on commit 34ccc0c

Please sign in to comment.