Closed tylerkrupicka-stripe closed 3 years ago
Hmm, it doesn't look like travis ran on this PR. If there's anything I need to do to fix that let me know.
Travis is broken/disabled and I have yet to switch to CircleCI. :grimacing: Thanks for the PRs! I'll reserve a bit of review time for the end of the week to get back to the CI issue (and these pull requests).
Waiting for #158
@mozfreddyb Thanks for the review, I figured out what cases would be missed by the ignore and I think I have addressed them. I've also significantly expanded the tests for this change, and ran it on our flow codebase to make sure the syntax errors didn't reappear.
Let me know if you see anything else I need to fix! Thanks again.
Closes https://github.com/mozilla/eslint-plugin-no-unsanitized/issues/155
Changes to add support for the
TypeCastExpression
ESLint babel node type, which occurs when someone does a Flow type cast. These node types are already supported by thebabel-eslint
parser so no new parser is needed.I added tests that mirror the same functionality already included for TypeScript. The Flow type cast nodes appear to behave very similarly to the TypeScript ones.
I've also tested the changes on some Flow codebases inside Stripe; the changes fixed the
Unsupported Callee
errors and didn't seem to introduce any other problems.Let me know if there's anything I need to fix or improve! Thanks for maintaining the project.