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

Check logical assignment operators (fixes #147) #149

Closed gijsk closed 3 years ago

gijsk commented 3 years ago

Although in theory, assignment to .innerHTML where relevant should never have .innerHTML as undefined or null, we should probably err on the side of caution.

gijsk commented 3 years ago

This will require the changes in #148 to work.