@hint/parser-javascript
webhint parser needed to analyze JavaScript files
Last updated 8 days ago by johnatms .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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.5                                ...           latest (8 days ago)

29 Versions

  • 3.1.5                                ...           8 days ago
  • 3.1.4                                ...           a month ago
  • 3.1.3                                ...           2 months ago
  • 3.1.2                                ...           6 months ago
  • 3.1.1                                ...           6 months ago
  • 3.1.0                                ...           7 months ago
  • 3.0.13                                ...           7 months ago
  • 3.0.12                                ...           8 months ago
  • 3.0.11                                ...           8 months ago
  • 3.0.10                                ...           8 months ago
  • 3.0.9                                ...           9 months ago
  • 3.0.8                                ...           9 months ago
  • 3.0.7                                ...           9 months ago
  • 3.0.6                                ...           10 months ago
  • 3.0.5                                ...           10 months ago
  • 3.0.4                                ...           10 months ago
  • 3.0.3                                ...           10 months ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-beta.0                                ...           2 years ago
Maintainers (2)
Downloads
Today 1
This Week 51
This Month 349
Last Day 11
Last Week 293
Last Month 132
Dependencies (7)
Dev Dependencies (18)

Copyright 2014 - 2016 © taobao.org |