Revisit --no-type-check

Aberta
#2,735 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
68/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
javascript, rust
Domínio
cli, tooling

Direção de pesquisa

Start at the vp check command and the vite.config.js#lint.typeCheck setting. Trace how command-line options override the current configuration, then verify that --no-type-check disables type checking while format and non-type-related lint checks still run.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

pending triage
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.
Linguagem predominante
Rust
Estrelas
6.5k
Forks
297
Merge médio
1d 3h
PRs com merge (30d)
245

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de voidzero-dev/vite-plus

Todas as issues de voidzero-dev/vite-plus

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.