mozilla / eslint-plugin-no-unsanitized

Custom ESLint rule to disallows unsafe innerHTML, outerHTML, insertAdjacentHTML and alike
Mozilla Public License 2.0
223 stars 34 forks source link

rule should not barf on a CallExpression result being called again #59

Closed mozfreddyb closed 7 years ago

mozfreddyb commented 7 years ago
       code: "  _tests.shift()();", 

makes the rule throw an exception. This pull request fixes it and adds a test.

Also, error reporting was broken for those cases, so I fixed that while I was at it

jonathanKingston commented 7 years ago

👍 thanks!