mozilla / eslint-plugin-no-unsanitized

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

Error "Unexpected Callee" thrown after non-null assertion of a function #152

Closed poteat closed 3 years ago

poteat commented 3 years ago

The error message is: Error in no-unsanitized: Unexpected Callee.

My ESLint version is: 7.12.0

My eslint-plugin-no-unsanitized version: 3.1.4

The minimal code to reproduce:

(() => ({}))!();

Thanks!

mozfreddyb commented 3 years ago

@LukeWood This seems to be related to TypeScript support. Can you take this?

mozfreddyb commented 3 years ago

@poteat Thanks for filing! We at Mozilla do not use TypeScript and our support is mostly community driven. Let me know if you want to get involved, otherwise we'll have to wait for our main TS support contributor.

LukeWood commented 3 years ago

sure thing

LukeWood commented 3 years ago

Hmm, I can't reproduce locally. @poteat I'm not sure why you're encountering this. Are you certain that you are using the version linked in this bug?

mozfreddyb commented 3 years ago

@poteat, can you confirm this is an issue with the latest version? If not, we're going to close this as incomplete...