textlint HTML plugin.
npm install textlint-plugin-htmlAdd HTML support for textlint.
What is textlint plugin? Please see
npm install textlint-plugin-html
Requirements:
- textlint v13+
- .html
- .htm
Manually add text plugin to do following:
```
{
"plugins": [
"html"
]
}
Lint HTML file with textlint
``
$ textlint index.html
: string[]
- Additional file extensions for htmlFor example, if you want to treat
.custom-ext as html, put following config to .textlintrc
`json
{
"plugins": {
"html": {
"extensions": [".custom-ext"]
}
}
}
`Tests
npm test
Development
If you update snapshot, please run
npm run updateSnapshot.$3
1. add new fixture file to
test/ast-test-case/
2. npm run updateSnapshot
3. check outputsContributing
1. Fork it!
2. Create your feature branch:
git checkout -b my-new-feature
3. Commit your changes: git commit -am 'Add some feature'
4. Push to the branch: git push origin my-new-feature`MIT