-
Notifications
You must be signed in to change notification settings - Fork 109
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
tslint no-string-literal check is wrong #126
Comments
I think this rule does not do what I hoped it'd do. It just checks if whatever is in the brackets could in theory be a valid identifier on the object, but not whether the object allows it :-( @alexeagle do you know if tslint does or will support type based checks? |
They can't run the typechecker because they only do file-by-file analysis On Mon, Apr 11, 2016 at 3:38 PM Martin Probst notifications@github.com
|
It turns out it only syntactically checks object accesses, and is overly aggressive in doing so. Fixes #126.
It turns out it only syntactically checks object accesses, and is overly aggressive in doing so. Fixes #126.
However, the object in question is from minimist and defined as
so I should be able to index into it with a string.
What's the fix -- fix tslint or fix our settings?
The text was updated successfully, but these errors were encountered: