Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Allow configuring the Oxlint output format for `vp lint` and `vp check`

Ouverte
#2,608 2 commentaires 1 réaction 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
65/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
typescript

Piste de recherche

Commencez au point d’entrée de configuration dans vite.config.ts et dans les chemins des commandes vp lint et vp check ; suivez également la manière dont la phase de lint est invoquée via vp staged. Vérifiez comment les arguments d’Oxlint sont assemblés, puis confirmez que les formats configurés et ceux fournis via la CLI s’appliquent aux diagnostics de lint, tandis que vp check conserve sa propre sortie récapitulative et qu’omettre la configuration préserve le comportement actuel.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

pending triage
Description

vp lint supports selecting an Oxlint output format through the CLI:

vp lint --format=agent

However, there is no equivalent project-level setting in vite.config.ts. In addition, vp check does not accept --format or provide another way to control the output format of its lint phase.

Vitest already supports configuring agent-friendly output centrally:

export default defineConfig({
  test: {
    reporters: ["agent"],
    silent: "passed-only",
  },
});

It would be useful to configure Oxlint output in the same place so that local development, coding agents, CI, vp check, and staged checks all use consistent diagnostics.

Oxlint automatically selects the agent formatter in some recognized agent environments, but this behavior is environment-dependent and does not cover every coding-agent harness. It also does not let a project enforce deterministic output across different environments.

Without a configuration option, projects must maintain separate package scripts and ensure every caller knows which script to use.

Suggested solution

Add a Vite+ configuration option for the Oxlint output format. For example:

export default defineConfig({
  lint: {
    format: "agent",
  },
});

The option should:

  • Apply to vp lint
  • Apply to the lint phase of vp check
  • Apply when those commands are invoked through vp staged
  • Support the same values as Oxlint’s --format option
  • Preserve the current behavior when omitted
  • Allow an explicit CLI --format argument to override the configured value

For vp check, the configured format should apply only to lint diagnostics while preserving Vite+’s own formatting and summary output.

Since output format is currently an Oxlint CLI option rather than part of OxlintConfig, Vite+ could treat this as command configuration and pass it separately to the Oxlint runner.

Alternative

As a workaround:

{
  "scripts": {
    "lint": "vp lint --format=agent",
    "check": "vp fmt --check && vp lint --format=agent"
  }
}

This has several drawbacks:

  • It bypasses the integrated vp check execution path
  • It duplicates Vite+ command behavior
  • It requires staged hooks, CI, contributors, and coding agents to know which script to invoke
  • It can diverge from the project’s normal vp check behavior

Another alternative is to rely on Oxlint’s automatic agent-environment detection. This is not deterministic across environments and does not currently recognize every agent harness.

Additional context

Related issues

  • #925 concerns preserving the automatically selected GitHub reporter in vp check.
  • #2035 discusses Oxlint’s environment-dependent reporter selection and clean-pass output.
  • oxc-project/oxc#20514 implemented the agent formatter and automatic agent detection.
  • oxc-project/oxc#19072 proposes an environment-variable override for compact agent output.

This request is specifically about defining a deterministic, project-level output format in vite.config.ts and applying it consistently to both vp lint and vp check.

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.
Langage dominant
Rust
Étoiles
6k
Forks
274
Merge moyen
1 j 11 h
PR mergées (30 j)
206

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de voidzero-dev/vite-plus

Toutes les issues de voidzero-dev/vite-plus

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.