@hint/parser-javascript
webhint parser needed to analyze JavaScript files
Last updated 3 months ago by vidorteg .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @hint/parser-javascript 
SYNC missed versions from official npm registry.

JavaScript (@hint/parser-javascript)

The javascript parser allows hints to analyze JavaScript files.

This package is installed automatically by webhint:

npm install hint --save-dev

To use it, activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": [...],
    "hints": {
        ...
    },
    "parsers": ["javascript"],
    ...
}

Note: The recommended way of running webhint is as a devDependency of your project.

Events emitted

This parser emits the following events:

  • parse::start::javascript of type Event which contains the following information:

    • resource: the resource we are going to parse.
  • parse::end::javascript, of type ScriptParse which contains the following information:

    • ast: an ESTree AST generated from the script.
    • element: an HTMLElement reference if the source was inline in HTML; null otherwise.
    • resource: the parsed resource. If the JavaScript is in a script tag and 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.

Current Tags

  • 3.1.25                                ...           latest (3 months ago)

49 Versions

  • 3.1.25                                ...           3 months ago
  • 3.1.24                                ...           a year ago
  • 3.1.23                                ...           2 years ago
  • 3.1.22                                ...           2 years ago
  • 3.1.21                                ...           2 years ago
  • 3.1.20                                ...           2 years ago
  • 3.1.19                                ...           2 years ago
  • 3.1.18                                ...           2 years ago
  • 3.1.17                                ...           3 years ago
  • 3.1.16                                ...           3 years ago
  • 3.1.15                                ...           3 years ago
  • 3.1.14                                ...           3 years ago
  • 3.1.13                                ...           3 years ago
  • 3.1.12                                ...           3 years ago
  • 3.1.11                                ...           3 years ago
  • 3.1.10                                ...           4 years ago
  • 3.1.9                                ...           4 years ago
  • 3.1.8                                ...           4 years ago
  • 3.1.7                                ...           4 years ago
  • 3.1.6                                ...           4 years ago
  • 3.1.5                                ...           4 years ago
  • 3.1.4                                ...           5 years ago
  • 3.1.3                                ...           5 years ago
  • 3.1.2                                ...           5 years ago
  • 3.1.1                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.13                                ...           5 years ago
  • 3.0.12                                ...           5 years ago
  • 3.0.11                                ...           5 years ago
  • 3.0.10                                ...           5 years ago
  • 3.0.9                                ...           5 years ago
  • 3.0.8                                ...           5 years ago
  • 3.0.7                                ...           5 years ago
  • 3.0.6                                ...           5 years ago
  • 3.0.5                                ...           5 years ago
  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 1.0.0-beta.0                                ...           6 years ago
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (18)

© 2010 - cnpmjs.org x YWFE | Home | YWFE