Use markuplint with HTMX. Add HTMX specific elements and attributes to the schema.
$ npm install -D @markuplint/htmx-parser
$ yarn add -D @markuplint/htmx-parser
Add parser
and spec
option to your configuration.
{
"parser": {
"\\.html$": "@markuplint/htmx-parser"
},
"specs": {
"\\.html$": "@markuplint/htmx-parser/spec"
}
}