-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add vars to scope manager declaredVariables #84
add vars to scope manager declaredVariables #84
Conversation
So, they validate if the parent is a function... |
I think typescript also has their own copy of no-unused-var -- wouldn't be unheard of, I guess |
This makes eslint sourceCode getDeclaredVariables work which is required for some rules to work
7e55d06
to
094967f
Compare
this does not fix the issue we had, but i think its still good to have it |
@@ -508,12 +508,17 @@ module.exports.convertAst = function convertAst(result, preprocessedResult, visi | |||
const scope = result.isTypescript | |||
? new TypescriptScope.BlockScope(result.scopeManager, upperScope, node) | |||
: new Scope(result.scopeManager, 'block', upperScope, node); | |||
const declaredVariables = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 514
This makes eslint sourceCode getDeclaredVariables work which is required for some rules to work.