Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

ES6 let and const syntax #371

Closed
adidahiya opened this issue Apr 20, 2015 · 1 comment
Closed

ES6 let and const syntax #371

adidahiya opened this issue Apr 20, 2015 · 1 comment
Assignees
Milestone

Comments

@adidahiya
Copy link
Contributor

microsoft/TypeScript#904

@adidahiya
Copy link
Contributor Author

In order to properly address #321, it seems like we need a BlockScopeAwareRuleWalker<T> and a new rule to lint duplicate let declarations in the same block scope. I don't see a clean way to integrate this into NoDuplicateVariableWalker while still supporting valid syntax like:

let a = 1;
if (true) {
    let a = 2;
}

... so I propose a new NoDuplicateLetWalker. Thoughts @gscshoyru, @ashwinr?

UPDATE: implemented here #374
UPDATE 2: see #375 instead; this has been integrated into the no-duplicate-variable rule

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant