@hint/parser-babel-config
webhint parser to analyze babel config
Last updated 4 years ago by vidorteg .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hint/parser-babel-config 
SYNC missed versions from official npm registry.

Babel config (@hint/parser-babel-config)

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

This package is installed automatically by webhint:

npm install hint --save-dev

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

And then activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": [...],
    "hints": {
        ...
    },
    "parsers": ["babel-config"],
    ...
}

This parser detects if a .babelrc configuration file is present, or if the Babel configuration is specified in package.json, and validates the Babel configuration against the schema.

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

Events emitted

This parser emits the following events:

  • parse::start::babel-config, of type BabelConfigParseStart which contains the following information:

    • resource: the resource we are going to parse.
  • parse::end::babel-config, of type BabelConfigParse which contains the following information:

    • resource: the parsed resource.
    • config: an object with a valid configuration.
  • parse::error::babel-config::json, of type BabelConfigInvalidJSON which contains the following information:

    • resource: the parsed resource.
    • error: the error emited parsing the configuration file.
  • parse::error::babel-config::circular, of type BabelConfigInvalidJSON which contains the following information:

    • resource: the parsed resource.
    • error: the error emited parsing the configuration file.
  • parse::error::babel-config::extends, of type BabelConfigInvalidJSON which contains the following information:

    • resource: the parsed resource.
    • error: the error emited parsing the configuration file.
  • parse::error::babel-config::schema, of type BabelConfigInvalidSchema which contains the following information:

    • resource: the parsed resource.
    • errors: all the errors that the schama validator returns.

Types

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

import { TypeOrEnumYouWantToUse } from '@hint/parser-babel-config';

Current Tags

  • 2.1.39                                ...           latest (4 years ago)

49 Versions

  • 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                                ...           4 years ago
  • 2.1.31                                ...           4 years ago
  • 2.1.30                                ...           4 years ago
  • 2.1.29                                ...           4 years ago
  • 2.1.28                                ...           4 years ago
  • 2.1.27                                ...           4 years ago
  • 2.1.26                                ...           5 years ago
  • 2.1.25                                ...           5 years ago
  • 2.1.24                                ...           5 years ago
  • 2.1.23                                ...           5 years ago
  • 2.1.22                                ...           6 years ago
  • 2.1.21                                ...           6 years ago
  • 2.1.20                                ...           6 years ago
  • 2.1.19                                ...           6 years ago
  • 2.1.18                                ...           6 years ago
  • 2.1.17                                ...           6 years ago
  • 2.1.16                                ...           6 years ago
  • 2.1.15                                ...           6 years ago
  • 2.1.14                                ...           6 years ago
  • 2.1.13                                ...           6 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                                ...           7 years ago
  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.3                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 1.0.0-beta.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 3
Last Month 3
Dependencies (4)
Dev Dependencies (15)

Copyright 2013 - present © cnpmjs.org | Home |