Run lint and typecheck to verify code quality before committing

Run verification checks in sequence. Stop and report on first failure.

tools-only Updated 7 repo stars

File contents

Run verification checks in sequence. Stop and report on first failure.

Steps

  1. Lint check

    pnpm lint
    

    If this fails, summarize the errors and stop.

  2. Type check

    pnpm typecheck || pnpm tsc --noEmit
    

    If this fails, summarize the type errors and stop.

Output

Report results clearly:

All passed:

✅ Lint: passed
✅ Types: passed

Ready to commit.

On failure:

❌ [Check] failed

[Brief summary of errors - not full output unless requested]

Fix these issues before committing.

Notes

  • Don't fix issues automatically. Just report them.
  • If neither pnpm lint nor pnpm typecheck exist, try common alternatives (npm run lint, npx tsc --noEmit).
  • If no lint/typecheck scripts found, inform the user.

tools-only/X-Skills/tree/main/development/1215-verify_63feca65 commit 2479e6f269

Frequently asked questions

npx skillmds@latest add tools-only/run-lint-and-typecheck-to-verify-code-quality-before