ESLint so hints can
To use it you will have to install it via
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 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.