Skip to content

Revisit --no-type-check #2735

Description

@alexgagnon

Description

Hi, I'd made a comment here on the original issue for this request, but after it was closed.

My use case for the original proposition was to have a way to to use 'vp check' without type checking when I want to check files in isolation, for example, as a PostToolUse hook after an agent touches a file. My understanding is that unless the code base enforces isolatedDeclarations, the whole graph is required to type check, where all I want is to run the format and non-type related lint rules in that check. The goal is to save tokens by not having an agent run basic lint and format commands, and doing full type checking only when needed for verifying its task.

Suggested solution

Have a --no-type-check flag which sets vite.config.js#lint.typeCheck flag to false for the current execution.

Alternative

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions