htmlhint
The Static Code Analysis Tool for your HTML
Last updated 18 days ago by thedaviddias .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install htmlhint 
SYNC missed versions from official npm registry.


Logo HTMLHint
HTMLHint

The static code analysis tool you need for your HTML.

Travis Build Status Codecov NPM count MIT Licence Chat Chat

  How To UseContributingWebsite

Table of Contents

???? Installation and Usage

Prerequisites: Node.js (>=6.14), npm version 3+.

There are two ways to install HTMLHint: globally and locally.

Local Installation and Usage

In case you want to include HTMLHint as part of your project, you can install it locally using NPM:

$ npm install htmlhint --save-dev

After that, You can run HTMLHint on any file or directory like this:

$ ./node_modules/.bin/htmlhint www/index.html
$ ./node_modules/.bin/htmlhint www/**/*.html

Global Installation and Usage

If you want to make HTMLHint available to tools that run across all of your projects, you can install HTMLHint globally using NPM:

$ npm install htmlhint -g

After that, you can run HTMLHint on any file like this:

$ htmlhint www/index.html
$ htmlhint www/**/*.html

You can even launch HTMLHint to analyse an URL:

$ htmlhint https://htmlhint.com/

???? Example output

???? Configuration

Search .htmlhintrc file in current directory and all parent directories:

$ htmlhint
$ htmlhint test.html

Custom config file:

$ htmlhint --config htmlhint.conf test.html

Custom rules:

$ htmlhint --rules tag-pair,id-class-value=underline index.html

Inline rules in test.html:

<!--htmlhint tag-pair,id-class-value:underline -->
<html>
<head>
...

???? Docs

  1. How to use
  2. All Rules
  3. How to Develop

© License

MIT License

???????? Contributors

This project exists thanks to all these people. Contribute.

???? Backers

Thank you to all our backers! Become a backer.

???? Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. Become a sponsor.

Current Tags

  • 1.0.0-beta.1                                ...           beta (18 days ago)
  • 0.14.1                                ...           latest (18 days ago)

25 Versions

  • 0.14.1                                ...           18 days ago
  • 1.0.0-beta.1                                ...           18 days ago
  • 0.15.0-beta.1                                ...           18 days ago
  • 0.14.0                                ...           a month ago
  • 0.13.1                                ...           a month ago
  • 0.13.1-beta.2                                ...           a month ago
  • 0.13.1-beta.1                                ...           a month ago
  • 0.13.0                                ...           2 months ago
  • 0.12.2                                ...           2 months ago
  • 0.12.1                                ...           2 months ago
  • 0.12.0                                ...           2 months ago
  • 0.11.0                                ...           a year ago
  • 0.10.3                                ...           a year ago
  • 0.10.2                                ...           a year ago
  • 0.10.1                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.13                                ...           4 years ago
  • 0.9.12                                ...           5 years ago
  • 0.9.11                                ...           5 years ago
  • 0.9.10                                ...           5 years ago
  • 0.9.9                                ...           5 years ago
  • 0.9.8                                ...           5 years ago
  • 0.9.7                                ...           5 years ago
  • 0.9.6                                ...           6 years ago
  • 0.9.5                                ...           6 years ago
Maintainers (1)
Downloads
Today 202
This Week 202
This Month 2,328
Last Day 62
Last Week 1,251
Last Month 11,627
Dependencies (8)
Dependents (92)

Copyright 2014 - 2016 © taobao.org |