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