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
Rule: Don't 'in' check AST nodes? #416
Comments
I recognize its value, but it seems to be the type of information needed? Otherwise there could be a lot of false positives (if obj is not an ast node): if( key in obj) {....} |
Yeah, this would have to be a typescript-eslint typed rule (typescript-eslint > Custom Rules > Typed Rules) to be useful in non-trivial cases. |
Currently no similar rules are included in this plugin, but I think it's possible, as long as it doesn't affect js users. |
It sounds useful to me. Is this different from this one? |
🤦 dear heavens. Sorry haha. I swear I did search for duplicates! |
From typescript-eslint/typescript-eslint#8226:
Is this generally sound advice for lint rules altogether?
The text was updated successfully, but these errors were encountered: