Closed LironEr closed 3 years ago
Thank you for filing this. My experience with typescript is zero, I didn't even know we supported a bit of typescript. I guess this is blocked on the decision whether we want to support typescript. I can imagine there is an increased cost once I start typescript support, that I'd have to maintain it and I'm not in a good position to do so.
Having said that, here's an early start at how this individual issue could be solved.
Looking at TS and how it parses into an AST, it seems like we'd need to support:
NonNullExpression
nodes where we'd recurse into the node's expression
attribute.PropertyAccessExpression
, which seem to be something like MemberExpressions. Not sure if really required.I've used the https://ts-ast-viewer.com/ website to understand parsing.
Hey there @mozfreddyb !
I work on Cloud Shell and would like to use eslint-plugin-no-unsanitized on some of our code. Unfortunately it is typescript code.
If I get a PR ready to add support for these features would you be willing to accept it?
I think this issue can be closed. @LironEr pls file a new one if I'm mistaken here.
The error is when using TypeScript
!
signThis is my
.eslintrc.js
file