Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5230272
feat(cli): enforce vite-plus import lint rule
Han5991 Apr 17, 2026
f010f5d
test: update lint-vite-plus-imports snap
Han5991 Apr 17, 2026
34a034f
test: assert lint-vite-plus-imports fails before fix
Han5991 Apr 17, 2026
0b09dc3
fix: rewrite vitest browser imports to exported paths
Han5991 Apr 17, 2026
cb546fc
test: update lint-vite-plus-imports snap
Han5991 Apr 17, 2026
af64e9b
refactor oxlint plugin typing
Han5991 Apr 17, 2026
de31855
use createOnce for oxlint rule
Han5991 Apr 17, 2026
f2adf8c
test: update lint-vite-plus-imports snap
Han5991 Apr 17, 2026
757f0ad
test: remove unnecessary oxlint rule cast
Han5991 Apr 17, 2026
0549f73
test: update lint-vite-plus-imports snap
Han5991 Apr 17, 2026
7159de6
fix: use oxlint plugin helpers
Han5991 Apr 21, 2026
b1976b6
fix: expose oxlint plugin for sync resolution
Han5991 Apr 21, 2026
f28f58c
fix: prioritize oxlint plugin runtime export
Han5991 Apr 21, 2026
3d3eaa1
fix: simplify oxlint literal guard
Han5991 Apr 21, 2026
70aae26
fix: add node condition to oxlint-plugin exports
Han5991 Apr 21, 2026
f7ff7f7
fix ci lockfile for pinned rolldown
Han5991 Apr 23, 2026
00f6873
fix: update @oxlint/plugins to version 1.61.0 in lockfiles
Han5991 Apr 23, 2026
b839c20
fix: update formatting commands in configuration scripts
Han5991 Apr 23, 2026
8eb4b8d
test: update snap tests to match new oxlint-plugin config
Han5991 Apr 23, 2026
cab2573
test: fix global snap test checkout resolution
Han5991 Apr 24, 2026
8e84fd1
fix: correct indentation in error message for snap-test
Han5991 Apr 24, 2026
eef7ef0
fix: correct indentation in error message for snap-test
Han5991 Apr 24, 2026
7a80fba
test: handle Windows global CLI shim in snap tests
Han5991 Apr 24, 2026
9e23116
fix: update @emnapi/core and @emnapi/runtime specifiers in lockfiles
Han5991 Apr 24, 2026
3df5cc3
fix: update dependencies and lockfile entries to latest versions
Han5991 May 6, 2026
b249edf
fix: update pnpm-lock.yaml to reflect new oxc-resolver and @emnapi/co…
Han5991 May 6, 2026
021398e
fix: update tsdown specifier in pnpm-lock.yaml
Han5991 May 6, 2026
adbad40
fix: update pnpm-lock.yaml and Cargo.lock to adjust dependency specif…
Han5991 May 6, 2026
5ce1240
fix: downgrade @oxfmt and related bindings in pnpm-lock.yaml to 0.45.x
Han5991 May 6, 2026
b096c8b
fix: update pnpm-lock.yaml to bump postcss and terser dependencies to…
Han5991 May 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@
"types": "./dist/lint.d.ts",
"import": "./dist/lint.js"
},
"./oxlint-plugin": {
"module-sync": "./dist/oxlint-plugin.js",
"node": "./dist/oxlint-plugin.js",
"import": "./dist/oxlint-plugin.js",
"default": "./dist/oxlint-plugin.js",
"types": "./dist/oxlint-plugin.d.ts"
},
"./package.json": "./package.json",
"./pack": {
"types": "./dist/pack.d.ts",
Expand Down Expand Up @@ -329,6 +336,7 @@
},
"dependencies": {
"@oxc-project/types": "catalog:",
"@oxlint/plugins": "catalog:",
"@voidzero-dev/vite-plus-core": "workspace:*",
"@voidzero-dev/vite-plus-test": "workspace:*",
"oxfmt": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ignoredPlatforms": ["win32"],
"linkCheckoutPackages": true,
"commands": [
{
"command": "vp create astro --no-interactive -- my-astro-app --yes --skip-houston --template basics # create Astro app",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ignoredPlatforms": ["win32"],
"linkCheckoutPackages": true,
"commands": [
{
"command": "vp create vite:application --no-interactive -- --template vue-ts # create Vue+TS app",
Expand Down
12 changes: 10 additions & 2 deletions packages/cli/snap-tests-global/create-missing-typecheck/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ export default defineConfig({
"*": "vp check --fix",
},
fmt: {},
lint: { options: { typeAware: true, typeCheck: true } },
lint: {
jsPlugins: [{ name: "vite-plus", specifier: "vite-plus/oxlint-plugin" }],
rules: { "vite-plus/prefer-vite-plus-imports": "error" },
options: { typeAware: true, typeCheck: true },
},
});

> vp create vite:monorepo --no-interactive # create monorepo
Expand All @@ -19,7 +23,11 @@ export default defineConfig({
"*": "vp check --fix",
},
fmt: {},
lint: { options: { typeAware: true, typeCheck: true } },
lint: {
jsPlugins: [{ name: "vite-plus", specifier: "vite-plus/oxlint-plugin" }],
rules: { "vite-plus/prefer-vite-plus-imports": "error" },
options: { typeAware: true, typeCheck: true },
},
run: {
cache: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ export default defineConfig({
},
lint: {
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ export default defineConfig({
fmt: {},
lint: {
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {}
"options": {},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
"*.js": "vp lint --fix"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
"*.js": "vp lint --fix"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ export default defineConfig({
"builtin": true
},
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},
staged: {
"*.ts": "vp lint --fix"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,19 @@ export default defineConfig({
"builtin": true
},
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},
staged: {
"*.ts": "vp lint --fix"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,19 @@ export default defineConfig({
"builtin": true
},
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},

});
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,19 @@ export default defineConfig({
"builtin": true
},
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},

});
11 changes: 9 additions & 2 deletions packages/cli/snap-tests-global/migration-eslint-rerun/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,19 @@ export default defineConfig({
"builtin": true
},
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},

});
11 changes: 9 additions & 2 deletions packages/cli/snap-tests-global/migration-eslint/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ export default defineConfig({
"builtin": true
},
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
"*.js": "vp lint --fix"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
"*.ts": "vp lint --fix"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
"*.js": "vp lint --fix"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineConfig({
}
},
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
server: {
port: 3000,
},
Expand Down Expand Up @@ -80,7 +80,7 @@ export default defineConfig({
}
},
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
server: {
port: 3000,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/snap-tests-global/migration-from-tsdown/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
},
pack: tsdownConfig,
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
});

> cat package.json # check package.json
Expand Down Expand Up @@ -86,7 +86,7 @@ export default defineConfig({
},
pack: tsdownConfig,
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
});

> cat package.json # check package.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
"*.js": "vp lint --fix"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
"*.@(js|ts|tsx|yml|yaml|md|json|html|toml)": [
"vp fmt --staged",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { defineConfig } from 'vite-plus';

export default defineConfig({
fmt: {},
lint: {"options":{"typeAware":true,"typeCheck":true}},
lint: {"jsPlugins":[{"name":"vite-plus","specifier":"vite-plus/oxlint-plugin"}],"rules":{"vite-plus/prefer-vite-plus-imports":"error"},"options":{"typeAware":true,"typeCheck":true}},
staged: {
'*.js': 'vp check --fix',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ export default {
fmt: {},
lint: {
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},
plugins: [react()],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ export default defineConfig({
},
lint: {
"rules": {
"no-unused-vars": "error"
"no-unused-vars": "error",
"vite-plus/prefer-vite-plus-imports": "error"
},
"options": {
"typeAware": true,
"typeCheck": true
}
},
"jsPlugins": [
{
"name": "vite-plus",
"specifier": "vite-plus/oxlint-plugin"
}
]
},
plugins: [react()],
test: {
Expand Down
Loading
Loading