There's an eslint plugin for extracting JS from HTML, so you can catch issues even when using inline JS! https://github.com/BenoitZugmeyer/eslint-plugin-html