Babel Config Validator

v1.0.0

Validate Babel config files (babel.config.json, .babelrc, .babelrc.json, package.json#babel) for deprecated presets, plugin conflicts, ordering issues, and b...

0· 90·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for charlie-morrison/babel-config-validator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Babel Config Validator" (charlie-morrison/babel-config-validator) from ClawHub.
Skill page: https://clawhub.ai/charlie-morrison/babel-config-validator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install babel-config-validator

ClawHub CLI

Package manager switcher

npx clawhub@latest install babel-config-validator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included script and runtime instructions. The tool only reads and analyzes Babel config files and reports findings; it does not require unrelated credentials, binaries, or services.
Instruction Scope
SKILL.md instructs running the bundled Python script on local config files. The script only reads the specified file and looks for sibling config files in the same directory (expected for detecting config conflicts). It does not instruct broad data collection or transmission.
Install Mechanism
No install steps are declared and the code is pure Python stdlib. No downloads, package manager installs, or archive extraction are present in the manifest.
Credentials
The skill requests no environment variables, credentials, or config paths. The script reads files the user points it at and sibling files in the same directory—this is proportionate to a config linter.
Persistence & Privilege
Skill is not always-enabled and does not attempt to modify other skills or system configuration. It performs read-only analysis of local files and does not persist credentials or enable itself automatically.
Assessment
This skill appears safe and does what it claims: run the included Python script against Babel config files to get warnings/errors. Before running, ensure you execute it on projects you trust (it will read the target file and other Babel-related files in the same directory). No network calls, installs, or secret access are present, but if you need extra assurance you can open and review scripts/babel_config_validator.py yourself (it uses only the Python stdlib).

Like a lobster shell, security has layers — review code before you run it.

latestvk976v35pyp0mx5sqmmt5s9e05h8594rk
90downloads
0stars
1versions
Updated 6d ago
v1.0.0
MIT-0

Babel Config Validator

Validate babel.config.json, .babelrc, .babelrc.json, and package.json#babel for deprecated presets/plugins, conflicting transforms, ordering issues, and best practices. Supports text, JSON, and summary output formats with CI-friendly exit codes.

Commands

# Full validation (all 24+ rules)
python3 scripts/babel_config_validator.py validate babel.config.json

# Quick syntax-only check (structure rules only)
python3 scripts/babel_config_validator.py check .babelrc

# Explain config in human-readable form
python3 scripts/babel_config_validator.py explain babel.config.json

# Suggest improvements
python3 scripts/babel_config_validator.py suggest package.json

# JSON output (CI-friendly)
python3 scripts/babel_config_validator.py validate .babelrc --format json

# Summary only (pass/fail + counts)
python3 scripts/babel_config_validator.py validate .babelrc --format summary

# Strict mode (warnings become errors)
python3 scripts/babel_config_validator.py validate .babelrc --strict

Rules (24+)

#CategorySeverityRule
S1StructureErrorFile not found or unreadable
S2StructureErrorEmpty config or no content
S3StructureWarningBoth babel.config and .babelrc present (conflict)
S4StructureWarningUnknown top-level config keys
S5StructureErrorInvalid JSON syntax
P1PresetsErrorDeprecated preset (es2015, es2016, es2017, latest, stage-*)
P2PresetsWarningPreset ordering matters (@babel/preset-typescript before @babel/preset-env)
P3PresetsWarningDuplicate presets
P4PresetsErrorUnknown/misspelled preset name
P5PresetsWarningMissing @babel/preset-env (most configs need it)
L1PluginsErrorDeprecated plugin (@babel/plugin-proposal-* → built-in)
L2PluginsWarningDuplicate plugins
L3PluginsWarningPlugin ordering conflict (decorators before class-properties)
L4PluginsWarningConflicting plugins (transform-runtime + external-helpers)
L5PluginsWarningPlugin without @babel/ scope (may be community or typo)
M1ModulesWarningmodules: false in preset-env without bundler context
M2ModulesWarningsourceType mismatch with modules setting
M3ModulesWarningConflicting module transforms
E1Env/OverridesWarningEmpty env config section
E2Env/OverridesWarningOverride without test pattern
E3Env/OverridesWarningUnknown env name (not development/production/test)
B1Best PracticesWarningloose mode inconsistency across plugins
B2Best PracticesWarningMissing targets/browserslist (unoptimized output)
B3Best PracticesWarninguseBuiltIns without corejs version
B4Best PracticesWarningcorejs version outdated (< 3)

Output Formats

  • text (default): Human-readable with colors and severity icons
  • json: Machine-parseable JSON array of findings
  • summary: Pass/fail with error/warning counts

Exit Codes

  • 0: No errors (warnings only or clean)
  • 1: One or more errors found
  • 2: File not found or invalid input

Requirements

  • Python 3.8+
  • No external dependencies (pure stdlib)

Comments

Loading comments...