Skip to content

vp lint / vp fmt run oxlint/oxfmt from a parent directory instead of the bundled one #3065

Description

@Pduhard

Describe the bug

  • vp lint / vp fmt / vp check resolve oxlint and oxfmt from the cwd upward; the bundled copy is only the fallback.
  • A project that doesn't install oxlint, under a folder with node_modules/oxlint, runs the parent's copy (our case: a git worktree inside the main checkout).
  • With a parent oxlint ≤ 1.61, the parent's .oxlintrc.json applies and the lint block of vite.config.ts is ignored. No warning.

Reproduction

https://github.com/Pduhard/repro-vite-plus-lint-overrides

Steps to reproduce

in the repro fork:

pnpm install          # parent: oxlint 1.60.0
cd app && pnpm install  # app: vite-plus 1.2.0
./node_modules/.bin/vp lint --version  # expected 1.88.0
./node_modules/.bin/vp lint src        # expected 1 error

System Info

vite-plus 1.2.0, Node 24.17.0, pnpm 12.11.2
Linux x64; also Windows (windows-latest), incl. a parent copy at D:\node_modules

Used Package Manager

pnpm

Logs

Validations

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

Metadata

Metadata

Assignees

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions