pa11y-runner-htmlhint
Version:
Pa11y runner for HTML linting with HTMLHint
30 lines (17 loc) • 2.12 kB
Markdown
[pa11y-runner-htmlhint](https://www.npmjs.com/package/pa11y-runner-htmlhint) [](https://www.npmjs.com/package/pa11y-runner-htmlhint) [](https://travis-ci.com/thibaudcolas/pa11y-runner-htmlhint) [](https://lgtm.com/projects/g/thibaudcolas/pa11y-runner-htmlhint/alerts/) [](https://lgtm.com/projects/g/thibaudcolas/pa11y-runner-htmlhint/context:javascript)
Pa11y runner for HTML linting with [HTMLHint](https://github.com/htmlhint/HTMLHint).
# Usage
🚧 Currently the runner is only compatible with PR [#524 – Add lower-level runner API to support non-browser runners](https://github.com/pa11y/pa11y/pull/524), and on my fork [thibaudcolas/pa11y#feature/node-runners](https://github.com/thibaudcolas/pa11y#feature/node-runners).
```sh
npm install -g https://github.com/thibaudcolas/pa11y#feature/node-runners pa11y-runner-htmlhint
```
With Pa11y and the runner installed,
```sh
pa11y --runner htmlhint https://www.example.com/
```
# Why
HTMLHint isn’t an accessibility checker like other Pa11y runners – it’s a general-purpose HTML linter. Nonetheless, HTMLHint contains a lot of "code smell" linting rules which can be indicative of underlying issues – for example [duplicate attributes](https://htmlhint.com/docs/user-guide/rules/attr-no-duplication) on HTML elements.
# Contributing
See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our [contribution guidelines](docs/CONTRIBUTING.md).
# Credits
View the full list of [contributors](https://github.com/thibaudcolas/pa11y-runner-htmlhint/graphs/contributors). [MIT](LICENSE) licensed.