Use markuplint with Mustache or Handlebars.
$ npm install -D @markuplint/mustache-parser
$ yarn add -D @markuplint/mustache-parser
Add parser
option to your configuration.
{
"parser": {
".mustache$|.hbs$": "@markuplint/mustache-parser"
}
}
It's not able to support syntaxes if one's attribute is complex.
✅ Available codes
<div attr="{{ value }}"></div>
<div attr='{{ value }}'></div>
<div attr="{{ value }}-{{ value2 }}-{{ value3 }}"></div>
❌ Unavailable codes
If it doesn't nest by quotations.
<div attr={{ value }}></div>