1 | htmllint
|
2 | ========
|
3 |
|
4 | [![npm version](http://img.shields.io/npm/v/htmllint.svg?style=flat-square)](https://npmjs.org/package/htmllint)
|
5 | [![license](http://img.shields.io/npm/l/htmllint.svg?style=flat-square)](https://npmjs.org/package/htmllint)
|
6 | [![build status](http://img.shields.io/travis/htmllint/htmllint/master.svg?style=flat-square)](https://travis-ci.org/htmllint/htmllint)
|
7 | [![coveralls](http://img.shields.io/coveralls/htmllint/htmllint.svg?style=flat-square)](https://coveralls.io/r/htmllint/htmllint)
|
8 | [![dependencies](http://img.shields.io/david/htmllint/htmllint.svg?style=flat-square)](https://david-dm.org/htmllint/htmllint)
|
9 | [![devDependencies](http://img.shields.io/david/dev/htmllint/htmllint.svg?style=flat-square)](https://david-dm.org/htmllint/htmllint)
|
10 |
|
11 | [![stories in ready](https://badge.waffle.io/htmllint/htmllint.svg?label=ready&title=Ready)](http://waffle.io/htmllint/htmllint)
|
12 | [![code climate](http://img.shields.io/codeclimate/github/htmllint/htmllint.svg?style=flat-square)](https://codeclimate.com/github/htmllint/htmllint)
|
13 |
|
14 | [![npm](https://nodei.co/npm/htmllint.png?downloads=true&downloadRank=true&stars=true)](https://npmsjs.org/package/htmllint)
|
15 |
|
16 | Getting Started
|
17 | ---------------
|
18 |
|
19 | To get started, pull in the dependencies:
|
20 |
|
21 | ```bash
|
22 | $ npm install
|
23 | # install gulp cli globally
|
24 | $ npm install -g gulp
|
25 | # lint js files
|
26 | $ gulp lint
|
27 | # run tests
|
28 | $ gulp test
|
29 |
|
30 | # the following is an easy way to do adhoc testing:
|
31 | $ node # start node in the root dir of the repo
|
32 | > var htmllint = require('./');
|
33 | > htmllint('the html to lint');
|
34 | ```
|
35 |
|
36 | Release History
|
37 | ---------------
|
38 |
|
39 | ### v0.0.8
|
40 |
|
41 | * added more rules
|
42 | * should be browserifiable
|
43 | * renamed rules to fit a better convention
|
44 |
|
45 | ### v0.0.7
|
46 |
|
47 | * added rules:
|
48 | * attr-value-quotes
|
49 | * img-src-not-empty
|
50 | * label-for
|
51 | * tag-self-close
|
52 | * fixed tag-name-lowercase bug
|
53 |
|
54 | ### v0.0.6
|
55 |
|
56 | * fixed some runtime errors in a few rules
|
57 | * fixed index errors that would occur on multiple runs
|
58 | of the parser
|
59 |
|
60 | ### v0.0.5
|
61 |
|
62 | * fixed line,col output bug
|
63 | * added label-for rule
|
64 |
|
65 | ### v0.0.4
|
66 |
|
67 | * added id-unique rule
|
68 | * extended parser output
|
69 | * refactored rules to fit new rule processing framework
|
70 | * added presets (envs)
|
71 |
|
72 | ### v0.0.3
|
73 |
|
74 | * added jsdoc
|
75 | * added more rules
|
76 | * added functional test suite
|
77 |
|
78 | ### v0.0.2
|
79 |
|
80 | * added more rules
|
81 | * added htmlparser2, rules run on an AST now
|
82 |
|
83 | ### v0.0.1
|
84 |
|
85 | * added basic scraper for inline styles using regex
|