feat(lint): add pnpm vite alias oxlint rule#1736
Draft
fengmk2 wants to merge 1 commit into
Draft
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
bc77362 to
81c7565
Compare
fengmk2
commented
Jun 1, 2026
81c7565 to
76d3a9d
Compare
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
c352ce0 to
0d2d55d
Compare
fengmk2
commented
Jun 1, 2026
| @@ -0,0 +1,21 @@ | |||
| [1]> vp lint --format default apps/website/vite.config.ts # should fail when a pnpm Vite+ app is missing the direct vite alias | |||
Member
Author
There was a problem hiding this comment.
vp lint --fix should be better?
0d2d55d to
cdab1ec
Compare
cdab1ec to
526bf1b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vite-plus/require-pnpm-vite-aliasto the Vite+ Oxlint plugin.Why
PR #1728 fixed a pnpm monorepo issue where removing the direct aliased
vitedependency from an application package made the workspace override appear ineffective. This lint rule catches that class of configuration drift in Vite+ application packages.Validation
pnpm exec tsc --noEmit --pretty falsevp fmt --check packages/cli/src/oxlint-plugin.ts packages/cli/src/oxlint-plugin-config.ts packages/cli/src/__tests__/oxlint-plugin.spec.tsvp lint packages/cli/src/oxlint-plugin.ts packages/cli/src/oxlint-plugin-config.ts packages/cli/src/__tests__/oxlint-plugin.spec.tsvp test packages/cli/src/__tests__/oxlint-plugin.spec.tsgit diff --checkNote:
pnpm -F vite-plus snap-test-global new-vite-monorepowas skipped on Windows by the snap-test runner.