Add HTML support for textlint.
What is textlint plugin? Please see https://github.com/textlint/textlint/blob/master/docs/plugin.md
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
- 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"]
       }
   }
}npm test
If you update snapshot, please run npm run updateSnapshot.
- add new fixture file to test/ast-test-case/<test-case-name>/index.html
- npm run updateSnapshot
- check outputs
- 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
MIT