A code quality bookmarklet and command-line tool.
npm install html-lintHTML-Lint is a tool designed to supplement HTML validation by identify coding practices that pass validation, but are less than ideal.
1. Copy the code below:
``js`
javascript: (function(){'use strict';var script = document.createElement('script');script.src = 'https://curtisj44.github.io/HTML-Lint/dist/htmlLint.min.js';script.id = 'html-lint-js';document.body.appendChild(script);}());
1. Create a new bookmark.
1. Set the name to “HTML-Lint” and paste the above as the URL.
Available on NPM: npmjs.com/package/html-lint: npm install html-lint -g.
#### Usage
``
html-lint
#### Options
``
--strict Return a non-zero exit code if lint errors are found
--verbose Enable verbose output
#### Examples
``
html-lint http://www.google.com
html-lint http://www.google.com --verbose
html-lint http://www.google.com foo
---
1. Have the following requirements installed: Node, NPM, and PhantomJS
1. Clone the repo: git clone https://github.com/curtisj44/HTML-Lint.gitnpm install
1. Run gulp
1. Run
- gulp → compiles Sass to CSS, concatenates JS, minifies CSS and JS, and watchesgulp watch
- → runs default gulp task and then watches for changes
1. Run node html-lint.js