You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation plan:
When inspecting CallExpressions in https://github.com/mozilla/eslint-plugin-no-unsanitized/blob/master/lib/rules/method.js#L94, we should not just say "it's fine" and break. Instead move the case statement above to those that need closer inspection. If the function being called is bind, we should construct a new "fake" CallExpression node object where the function being bound is called instead and call ruleHelper.checkMethod() on it. Similar, to how we create a "fake" node in the SequenceExpression code (above).
We can't do full type detection and it's (hard?) for us to detect stuff like
in fact, we don't think we ought to do so across the board as we're optimizing for well-intended code that is able to pass code review preferably.
The text was updated successfully, but these errors were encountered: