swc-project/swc · error

Lint command is not yet implemented

Error message

Lint command is not yet implemented

What it means

An unimplemented!() in `execute` of the lint CLI command (swc_cli_impl commands/lint.rs:8). The `swc lint` subcommand is registered in the clap parser with an empty options struct, but its CommandRunner implementation is a placeholder that unconditionally aborts, marking the lint feature as not yet built into the CLI.

Solutions

  1. Use an external linter (eslint/oxlint) until `swc lint` is implemented
  2. Contribute the lint subcommand implementation in swc_cli_impl
  3. Return a user-friendly 'command not yet implemented' error instead of a panic
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at crates/swc_cli_impl/src/commands/lint.rs:8 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of swc-project/swc@5176682b65 (2026-08-17). Data as JSON: /api/errors/e5efa1ec8a28d566. Report an issue: GitHub.

Appendix: source

Thrown at crates/swc_cli_impl/src/commands/lint.rs:8

use clap::Parser;

#[derive(Parser)]
pub struct LintOptions {}

impl super::CommandRunner for LintOptions {
    fn execute(&self) -> anyhow::Result<()> {
        unimplemented!("Lint command is not yet implemented")
    }
}

View on GitHub (pinned to 5176682b65)