CI Perf Lint

recommend-swc-over-babel

What This Rule Detects

This rule detects repositories using Babel that could benefit from migrating to SWC.

Why It Matters

SWC (Speedy Web Compiler) is a Rust-based compiler that provides:

Suggested Action

Consider migrating from Babel to SWC. The migration typically involves:

  1. Install @swc/core and @swc/cli
  2. Update your build scripts to use swc instead of babel
  3. Convert Babel config to SWC config (.swcrc)

When This Rule Is Skipped

This rule will NOT recommend SWC if any of the following are detected:

These patterns indicate a higher migration risk that requires manual assessment.

Measurement

Compare transpilation time and output compatibility between Babel and SWC.

Compatibility Notes