@hint/parser-html3.0.1 • Public • Published
HTML parser is built on top of
jsdom so hints can
Note: This parser is currently only needed if using the
connector. Other connectors provide their own DOM to
generate events instead.
To use it you will have to install it via
npm install @hint/parser-html
Note: You can make
npm install it as a
devDependency using the
--save-dev parameter, or to install it globally, you can use the
-g parameter. For other options see
And then activate it via the
.hintrc configuration file:
parser emits the event
parse::end::html of type
which has the following information:
HTMLDocumentobject containing the parsed document.
html: a string containing the raw HTML source code.
resource: the parsed resource.
And the event
parse::start::html of type
Event which has the
resource: the resource that is going to be parsed.