@hint/parser-webpack-config
webhint parser needed to analyze webpack config files
Last updated 7 years ago by antross .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @hint/parser-webpack-config 
SYNC missed versions from official npm registry.

webpack config (@hint/parser-webpack-config)

The webpack-config parser allows the user to analyze the webpack configuration in their projects.

It will detect if a webpack configuration file is present in your project, checking the name of the file (webpack.config.json).

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": ["webpack-config"],
    ...
}

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

Events emitted

This parser emits the following events:

  • parse::end::webpack-config, of type WebpackConfigParse which contains the following information:

    • resource: the parsed resource.
    • config: an object with a valid configuration (webpack.Configuration).
    • version: the webpack version installed locally.
  • parse::error::webpack-config::configuration, of type WebpackConfigInvalidConfiguration which contains the following information:

    • resource: the parsed resource.
    • error: the error emited parsing the configuration file.
  • parse::error::webpack-config::not-install. This event is sent if the package webpack is not installed locally. This event doesn't containt anything else.

  • parse::error::webpack-config::not-found. This event is sent if the parser doesn't find any configuration file at the end of the scan. This event doesn't containt anything else.

Types

If you need to import any type defined in this parser, you need to import them as follows:

import { TypeYouWantToUse } from '@hint/parser-webpack-config';

Current Tags

  • 2.1.42                                ...           latest (2 years ago)

48 Versions

  • 2.1.42                                ...           2 years ago
  • 2.1.41                                ...           3 years ago
  • 2.1.40                                ...           3 years ago
  • 2.1.39                                ...           4 years ago
  • 2.1.38                                ...           4 years ago
  • 2.1.37                                ...           4 years ago
  • 2.1.36                                ...           4 years ago
  • 2.1.35                                ...           4 years ago
  • 2.1.34                                ...           4 years ago
  • 2.1.33                                ...           4 years ago
  • 2.1.32                                ...           5 years ago
  • 2.1.31                                ...           5 years ago
  • 2.1.30                                ...           5 years ago
  • 2.1.29                                ...           5 years ago
  • 2.1.28                                ...           5 years ago
  • 2.1.27                                ...           5 years ago
  • 2.1.26                                ...           5 years ago
  • 2.1.25                                ...           5 years ago
  • 2.1.24                                ...           6 years ago
  • 2.1.23                                ...           6 years ago
  • 2.1.22                                ...           6 years ago
  • 2.1.21                                ...           6 years ago
  • 2.1.20                                ...           6 years ago
  • 2.1.19                                ...           7 years ago
  • 2.1.18                                ...           7 years ago
  • 2.1.17                                ...           7 years ago
  • 2.1.16                                ...           7 years ago
  • 2.1.15                                ...           7 years ago
  • 2.1.14                                ...           7 years ago
  • 2.1.13                                ...           7 years ago
  • 2.1.12                                ...           7 years ago
  • 2.1.11                                ...           7 years ago
  • 2.1.10                                ...           7 years ago
  • 2.1.9                                ...           7 years ago
  • 2.1.8                                ...           7 years ago
  • 2.1.7                                ...           7 years ago
  • 2.1.6                                ...           7 years ago
  • 2.1.5                                ...           7 years ago
  • 2.1.4                                ...           7 years ago
  • 2.1.3                                ...           7 years ago
  • 2.1.2                                ...           8 years ago
  • 2.1.1                                ...           8 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.2                                ...           8 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (2)
Downloads
Total 81
Today 0
This Week 0
This Month 36
Last Day 0
Last Week 32
Last Month 45
Dependencies (2)
Dev Dependencies (18)

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