🗳 HTML/Markup (Vue and Angular template) linter
npm install marklint!CI




``bash`
npm install marklint -g
Lint a file like so:
`bash`
marklint
`
Usage: marklint [file] [options]
file or directory file or directory to parse; otherwise uses '.'
Options:
--fix fixes all auto fixable issues
-v, --version print version and exit
-i, --include array of file paths to include (default: .html, .htm)
-e, --exclude array of file paths to exclude (default: node_modules/**)
-c, --config location of config file
``
- ✅ alt-require
- ✅ attr-closing-bracket
- ✅ attr-format
- ✅ attr-lowercase
- ✅ attr-no-duplication
- ✅ attr-value-not-empty
- ⭕ attr-value-double-quotes - _WIP_
- ✅ comment-format
- ✅ inline-style-disabled
- ✅ no-flow-tag-close
- ✅ no-unclosed-tag
- ✅ no-void-tag-close
- ⭕ style-disabled - _WIP_
- ✅ tag-indent
And since I hate that JS ecosystem has dependency rabbit hole I wanted to build markup linter that checks and fixes issues in any html markup file as well as Angular and Vue templates with minimum dependency count.