Skip to content

feat(check): redefine --no-lint for type-check-only workflow#1444

Open
jong-kyung wants to merge 6 commits intovoidzero-dev:mainfrom
jong-kyung:feat/check-no-lint-typecheck
Open

feat(check): redefine --no-lint for type-check-only workflow#1444
jong-kyung wants to merge 6 commits intovoidzero-dev:mainfrom
jong-kyung:feat/check-no-lint-typecheck

Conversation

@jong-kyung
Copy link
Copy Markdown
Collaborator

Summary

Redefines vp check --no-lint so it runs Oxlint's --type-check-only path when
lint.options.typeCheck is enabled in vite.config.ts, and makes
vp check --no-fmt --no-lint the natural type-check-only invocation.

Replaces the abandoned PR #1417 approach (sidecar .mjs + --no-type-check
CLI flag), which conflicts with upstream PR #1378 handing config resolution
back to oxlint/oxfmt.

Related: closes #1275 for the lint-rule-noise-free type-error triage workflow.

Behavior matrix

Command Behavior
vp check --no-lint (typeCheck=true) Runs --type-check-only; lint rules suppressed
vp check --no-lint (typeCheck=false/missing) Skips lint phase entirely (existing behavior)
vp check --no-fmt --no-lint (typeCheck=true) Type-check only
vp check --no-fmt --no-lint (typeCheck=false) error: No checks enabled with remediation hint
vp check --fix --no-lint (typeCheck=true) fmt --fix + read-only type-check diagnostics

--no-type-check CLI flag is not introduced — deferred to a follow-up once
oxlint exposes a symmetric OFF-direction flag for type-check.

Key design notes

  • typeAware prerequisite. Type-check only runs when both
    lint.options.typeAware and lint.options.typeCheck are true, matching the
    --type-check / --type-aware flag dependency in rfcs/check-command.md
    ("If --no-type-aware is set, --type-check is also implicitly disabled").
  • --fix --no-lint on a typeCheck-enabled project runs fmt --fix and
    then type-check as read-only diagnostics. On type error, fmt's completion
    pass line is still surfaced so lint-staged / pre-commit flows can tell the
    working tree was mutated before the failure (previously swallowed).
  • No sidecar. Config resolution is left to oxlint/oxfmt per PR fix(cli)!: stop injecting -c config so oxlint/oxfmt pick up nested vite.config.ts #1378.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 22, 2026

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 8f3df59
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69e9ee322a7e140008a48a99
😎 Deploy Preview https://deploy-preview-1444--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 22, 2026

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@jong-kyung
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung jong-kyung marked this pull request as ready for review April 22, 2026 15:43
@jong-kyung jong-kyung requested review from cpojer and fengmk2 and removed request for cpojer April 22, 2026 15:43
Comment thread docs/guide/check.md Outdated
Copy link
Copy Markdown
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add vp typecheck command

3 participants