htmllint-custom-tag-style

htmllint plugin to check custom tag naming.

Usage no npm install needed!

<script type="module">
  import htmllintCustomTagStyle from 'https://cdn.skypack.dev/htmllint-custom-tag-style';
</script>

README

htmllint-custom-tag-style

htmllint plugin to check custom tag naming.

yarn add -D htmllint-custom-tag-style

.htmllintrc

{
  "plugins": [
    "htmllint-custom-tag-style"
  ],
  "tag-name-match": true,                  // each tag should be closed
  "custom-tag-style": "/^app-prefix-.+$/", // custom tag only pattern
  "custom-tag-ignore-regexp": "/^%.*$/"    // ignore ejs stuff
}