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.9
|
40 |
|
41 | * added no-unsafe-char rule
|
42 | * corrected some (line, col) for attribute rules
|
43 |
|
44 | ### v0.0.8
|
45 |
|
46 | * added more rules
|
47 | * should be browserifiable
|
48 | * renamed rules to fit a better convention
|
49 |
|
50 | ### v0.0.7
|
51 |
|
52 | * added rules:
|
53 | * attr-value-quotes
|
54 | * img-src-not-empty
|
55 | * label-for
|
56 | * tag-self-close
|
57 | * fixed tag-name-lowercase bug
|
58 |
|
59 | ### v0.0.6
|
60 |
|
61 | * fixed some runtime errors in a few rules
|
62 | * fixed index errors that would occur on multiple runs
|
63 | of the parser
|
64 |
|
65 | ### v0.0.5
|
66 |
|
67 | * fixed line,col output bug
|
68 | * added label-for rule
|
69 |
|
70 | ### v0.0.4
|
71 |
|
72 | * added id-unique rule
|
73 | * extended parser output
|
74 | * refactored rules to fit new rule processing framework
|
75 | * added presets (envs)
|
76 |
|
77 | ### v0.0.3
|
78 |
|
79 | * added jsdoc
|
80 | * added more rules
|
81 | * added functional test suite
|
82 |
|
83 | ### v0.0.2
|
84 |
|
85 | * added more rules
|
86 | * added htmlparser2, rules run on an AST now
|
87 |
|
88 | ### v0.0.1
|
89 |
|
90 | * added basic scraper for inline styles using regex
|