2.4.2 • Published 6 years ago
html-lint v2.4.2
HTML-Lint
HTML-Lint is a tool designed to supplement HTML validation by identify coding practices that pass validation, but are less than ideal.
How to Use:
Option 1: Bookmarklet
- Copy the code below:
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);}());
- Create a new bookmark.
- Set the name to “HTML-Lint” and paste the above as the URL.
Option 2: CLI
Available on NPM: npmjs.com/package/html-lint: npm install html-lint -g
.
Usage
html-lint <url> <filename>
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
Development
Getting Started
- Have the following requirements installed: Node, NPM, and PhantomJS
- Clone the repo:
git clone https://github.com/curtisj44/HTML-Lint.git
- Run
npm install
- Run
gulp
Tasks
gulp
→ compiles Sass to CSS, concatenates JS, minifies CSS and JS, and watchesgulp watch
→ runs defaultgulp
task and then watches for changes
Testing the CLI locally
- Run
node html-lint.js <url>
2.4.2
6 years ago
2.4.1
9 years ago
2.4.0
9 years ago
2.3.1
9 years ago
2.2.1
9 years ago
2.2.0
9 years ago
2.1.15
9 years ago
2.1.14
9 years ago
2.1.13
9 years ago
2.1.12
10 years ago
2.1.11
10 years ago
2.1.10
10 years ago
2.1.9
10 years ago
2.1.8
10 years ago
2.1.7
10 years ago
2.1.6
10 years ago
2.1.5
10 years ago
2.1.4
10 years ago
2.1.3
10 years ago
2.1.2
10 years ago
2.1.1
10 years ago