mozilla / eslint-plugin-no-unsanitized

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

Allow linting of function invalid / unexpected arguments. #16

Closed EnTeQuAk closed 7 years ago

EnTeQuAk commented 7 years ago

I discovered this while working on mozilla/addons-linter. I know that document.write() without an argument is theoretically wrong code but eslint doesn't validate this so we have to take care of that ourselves.

Let me know if I should fix this differently somehow or if you need more information about this.

EnTeQuAk commented 7 years ago

@mozfreddyb it'd be wonderful if you have a moment to give this a review and maybe get this released?

mozfreddyb commented 7 years ago

Thanks, Christopher! I'll spin a release as we speak.

EnTeQuAk commented 7 years ago

Perfect, thanks!