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

Babel configuration rules set

Babel configuration rules set (@sonarwhal/rule-babel-config)

babel-config contains rules to check if your Babel configuration has the most recommended configuration.

Why is this important?

Babel needs to be properly configured to reflect user’s preference.

Rules

How to use this rule?

To use it you will have to install it via npm:

npm install @sonarwhal/rule-babel-config

Note: You can make npm install it as a devDependency using the --save-dev parameter, or to install it globally, you can use the -g parameter. For other options see npm's documentation.

And then activate it via the .sonarwhalrc configuration file:

{
"connector": {...},
"formatters": [...],
"parsers": [...],
"rules": {
"babel-config/is-valid": "error"
},
...
}

Further Reading