1.1.4 ā€¢ Published 2 years ago

htmlhint v1.1.4

Weekly downloads
64,832
License
MIT
Repository
github
Last release
2 years ago

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.

grunt-htmlhint-tmpcustomermanagementcb-customermagementlintstaged-config-airlight@infinitebrahmanuniverse/nolb-htmlh@everything-registry/sub-chunk-1870ebashejssdwt-ui@dwp/casa-spiderplan-a11y-pluginyxkj-uiwepy-actweb-lint-configwl-codemirror-editorwym-uiterra-schematicseslint-plugin-htm@foxpage/foxpage-component-editor-widgets@ephesus/clivalidation_html_enginefdlintjs@gumlet/insights-js-coredevops-validation-html-enginer-checkdiana-markdowndfe-frontenddfe-frontend-alphareasy-htmlcss-hint-webpackreasy-htmlcss-hint-nodescl016-mdlinks-ccnarvaezscanstosonar-web-frontend-reporterssup-uedcoherent-clisvelte-codemirror-componentghs-umami-tonkotsu-curator-devtoolsfr-clifrontplate-clifrp-cli-custom@julong/checkerfox-plugin-htmlhintx-compressor@josundt/htmlhint-configfis3-lint-htmlhint@hybrbase/htmlhint-configgrunt-php2htmlnx-htmlhint@reasy-team/r-checkionic-plugin-buildhzkweb-clihtmlhint-loaderhtml-mixed-linterhtml-webpack-plugin-htmlhinthtmlhint-bia-loaderhtmlhint-cli@shgysk8zer0/11ty-netlify@speedy/build-toolskolibri-tools@theholocron/htmlhint-config@third-scope/git-reviewnetlify-js-app@byui-cse/autogradercapsule-lintchisel-plugin-static-frontendchoerodon-hap-uichoerodon-ui@das.laboratory/htmlhint-config-interactiveatom-htmlhintmonaco-html-linter@zthun/web-styles@zthun/lint-janitor@zthun/lint-janitor-configadarchitecture-ui@abtasty/editor-uimd-links-validator@brite-inc/p5.js-web-editor-componentcgeraldo-md-links@wepy-act/cli@wepy/cliace-linterslinks-md-claudia-ramirezlintsalweb-front-end-relyonmdlinks-findermdlinks-lmdlinks-dlmp@titovskyi/validation-html-engine@zalastax/nolb-htmlhaliciapalacios10-md-linkposthtml-hint@devexteam/dvx-clicoc-htmlhintcode-assessdata-loversdashboard-libquick-codingdatasoli-viewprueba-mdlinkspage-load-testspa11y-runner-htmlhint
1.1.4

2 years ago

1.1.3

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.0

2 years ago

0.16.3

2 years ago

0.16.1

2 years ago

0.16.2

2 years ago

0.16.0

2 years ago

0.15.2

3 years ago

0.15.0

3 years ago

0.15.1

3 years ago

0.14.2

3 years ago

0.14.1

4 years ago

1.0.0-beta.1

4 years ago

0.15.0-beta.1

4 years ago

0.14.0

4 years ago

0.13.1

4 years ago

0.13.1-beta.2

4 years ago

0.13.1-beta.1

4 years ago

0.13.0

4 years ago

0.12.2

4 years ago

0.12.1

4 years ago

0.12.0

4 years ago

0.11.0

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.13

8 years ago

0.9.12

9 years ago

0.9.11

9 years ago

0.9.10

9 years ago

0.9.9

9 years ago

0.9.8

9 years ago

0.9.7

9 years ago

0.9.6

10 years ago

0.9.5

10 years ago

0.9.4

10 years ago

0.9.3

11 years ago

0.9.2

11 years ago

0.9.1

11 years ago