This site uses cookies for analytics. By continuing to browse this site, you agree to this use.

Valid Babel configuration

Valid Babel configuration (is-valid)

Why is this important?

If you are building an app or a website using babel, you need to be sure the configuration file is valid.

What does the hint check?

This hint checks if the Babel configuration specified in .babelrc or the babel property in package.json adheres to the requirement of the babel configuration schema.

Examples that trigger the hint

{
    "plugins": [
        "example"
    ],
    "moduleId": 1, // This should be a string.
    "ignore": [
        "foo.js",
        "bar/**/*.js"
    ]
}

Examples that pass the hint

{
    "plugins": [
        "example"
    ],
    "moduleId": "id",
    "ignore": [
        "foo.js",
        "bar/**/*.js"
    ]
}

Further Reading