This package is installed automatically by webhint:
npm install hint --save-dev
To use it, activate it via the
.hintrc configuration file:
Note: The recommended way of running webhint is as a
parser emits the following events:
Eventwhich contains the following information:
resource: the resource we are going to parse.
ScriptParsewhich contains the following information:
ESTreeAST generated from the script.
HTMLElementreference if the source was inline in HTML;
script tagand not a file, the value will refer to the HTML document containing the script.
sourceCode: the raw source code that was parsed.
tokens: a list of tokens generated from the source code.
walk: helper methods for walking the AST.