Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/textlint/textlint-plugin-html
HTML support for textlint
https://github.com/textlint/textlint-plugin-html
ast html plugin textlint
Last synced: 4 days ago
JSON representation
HTML support for textlint
- Host: GitHub
- URL: https://github.com/textlint/textlint-plugin-html
- Owner: textlint
- License: mit
- Created: 2015-10-29T02:52:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T15:17:15.000Z (3 months ago)
- Last Synced: 2024-08-09T16:48:26.875Z (3 months ago)
- Topics: ast, html, plugin, textlint
- Language: HTML
- Homepage:
- Size: 365 KB
- Stars: 20
- Watchers: 3
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# textlint-plugin-html [![Actions Status: test](https://github.com/textlint/textlint-plugin-html/workflows/test/badge.svg)](https://github.com/textlint/textlint-plugin-html/actions?query=workflow%3A"test")
Add HTML support for [textlint](https://github.com/textlint/textlint "textlint").
What is textlint plugin? Please see
## 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 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`.
### Add new test case
1. add new fixture file to `test/ast-test-case//index.html`
2. npm run updateSnapshot
3. check outputs## Contributing
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`
5. Submit a pull request :D## License
MIT