This ESLint
plugin extracts and lints scripts from HTML files.
Supported HTML extensions: .html
, .xhtml
, .htm
Only script tags with no type attribute or with a type containing text/javascript
will be linted.
Simply add the plugin to your ESLint configuration. See ESLint documentation.
Example:
{
"plugins": [
"html"
]
}