textlint-plugin-html
v1.0.1
Published
textlint HTML plugin.
Downloads
26,746
Readme
textlint-plugin-html
Add HTML support for textlint.
What is textlint plugin? Please see https://github.com/textlint/textlint/blob/master/docs/plugin.md
Installation
npm install textlint-plugin-html
Requirements:
- textlint v13+
Default supported extensions
.html
.htm
Usage
Manually add text plugin to do following:
{
"plugins": [
"html"
]
}
Lint HTML file with textlint
$ textlint index.html
Options
extensions
:string[]
- Additional file extensions for html
For example, if you want to treat .custom-ext
as html, put following config to .textlintrc
{
"plugins": {
"html": {
"extensions": [".custom-ext"]
}
}
}
Tests
npm test
Development
If you update snapshot, please run npm run updateSnapshot
.
Add new test case
- add new fixture file to
test/ast-test-case/<test-case-name>/index.html
- npm run updateSnapshot
- check outputs
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT