Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 696 Bytes

readme.md

File metadata and controls

18 lines (11 loc) · 696 Bytes

HTML Linting with htmlhint

HTML deserves to be as well maintained as your other code.

Play with this simple html linting setup with the following steps.

  • clone this repo to your desktop.
  • run "npm install"
  • test the linting by running "npm run lint:html" (this script is short for "htmlhint "./**/*.html"", and is defined in the package.json)

You should see two errors pop up (one for src-not-empty, and the other for tag-pair). If not, make sure you ran "npm install".

Enjoy!

Other possible HTML linting rules can be found here. You can find the details on the NPM package here.