CLI · check

cem check

Type-check, lint (ESLint v10 flat config) and format-check in a single rapid pipeline. Perfect for pre-commit hooks and CI.

bash
cem check

Equivalent to npm run check.

Output

Powered by CEM's redesigned ANSI terminal UI with live spinners and status badges:

  [CEM]  cem check  type · lint · format
  ──────────────────────────────────────────────────────

  ◆  Type check (tsc)…          ✔  384ms
  ◆  Lint (eslint v10)…         ✔  1.12s
  ◆  Format check (prettier)…   ✔  240ms

  ──────────────────────────────────────────────────────

  ✔  All checks passed.  (3/3)

Auto-fixing errors with --fix

Pass the --fix flag to automatically repair fixable linting violations and Prettier formatting errors in-flight:

bash
cem check --fix

You can also run the dedicated shorthand cem fix command. See the cem fix documentation for full details.

On failure

Each tool's raw output is printed inline directly under the failing step — no need to scroll or re-run individual commands to find the cause.

Use in CI

yaml
# .github/workflows/ci.yml
- run: npm ci
- run: npx cem check
- run: npx cem build