Sometimes there's no way around raw HTML in JavaScript. Unfortunately this increases the risk of XSS vulnerabilities in the project. These risks can be mitigated by implementing rules for how the HTML content is handled. Codifying the rules in ESLint helps to ensure they are followed.
Includes a short primer to XSS vulnerabilities for those not familiar with the issue.