vp check --no-lint still reports type-aware lint rules and ignores their disable comments
Maintainer antworten meist innerhalb von 1 Tag
@camc314 arbeitet bereits daran.
Seit 26.9.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Describe the bug
vp check --no-lint is documented as "Skip lint rules; type-check still runs when lint.options.typeCheck is true". With typeAware and typeCheck enabled, though, it still reports type-aware lint rules, and it ignores their oxlint-disable comments. Plain vp check and vp lint both respect the comment, so the --no-lint run is the only one that fails.
Expected: --no-lint reports TypeScript diagnostics only.
Actual: type-aware rule diagnostics are reported (as errors), and disable directives have no effect.
I found this while moving a project to Vite+ 1.0.0-rc.1. The workaround is vp check --no-fmt, which runs the full lint as well.
Reproduction
Inline below, no repository needed.
Steps to reproduce
mkdir vp-no-lint && cd vp-no-lint && git init -q && mkdir src
printf 'node_modules\n' > .gitignore
cat > package.json <<'EOF'
{ "private": true, "type": "module",
"devDependencies": { "typescript": "6.0.3", "vite-plus": "1.0.0-rc.1" } }
EOF
cat > tsconfig.json <<'EOF'
{ "compilerOptions": { "strict": true, "module": "esnext", "moduleResolution": "bundler", "target": "esnext" }, "include": ["src"] }
EOF
cat > vite.config.ts <<'EOF'
import { defineConfig } from "vite-plus";
export default defineConfig({
lint: {
options: { typeAware: true, typeCheck: true },
rules: { "typescript/no-floating-promises": "error" },
},
});
EOF
cat > src/index.ts <<'EOF'
// oxlint-disable-next-line typescript/no-floating-promises -- fire and forget
Promise.resolve();
EOF
vp install
vp check --no-fmt # pass, exit 0
vp check --no-fmt --no-lint # fails, exit 1
$ vp check --no-fmt
pass: Found no warnings, lint errors, or type errors in 2 files (270ms, 8 threads)
$ vp check --no-fmt --no-lint
error: Type errors found
x typescript(no-floating-promises): Promises must be awaited, add void operator to ignore.
,-[src/index.ts:2:1]
1 | // oxlint-disable-next-line typescript/no-floating-promises -- fire and forget
2 | Promise.resolve();
: ^^^^^^^^|^^^^^^^^^
: `-- This unhandled promise-like value has type `Promise<void>`.
`----
Found 1 error and 0 warnings in 2 files (273ms, 8 threads)
This does not look like an Oxlint bug. Running vp lint -A all --type-aware --type-check on the same project reports nothing, and a real type error (const n: number = "x") is reported correctly by vp check --no-lint, next to the rule diagnostic above.
System Info
$ vp --version
vp v1.0.0-rc.1
Local vite-plus:
vite-plus v1.0.0-rc.1
Tools:
vite v8.3.1
rolldown v1.2.11
vitest v5.0.1
oxfmt v0.70.0
oxlint v1.85.0
oxlint-tsgolint v7.0.2003
tsdown v0.23.0
$ vp env current
Node.js:
Version 26.10.0
Source system PATH
Mode system_first
Package Manager:
Name pnpm
Version 12.6.0
Source system PATH
Mode system_first
macOS (arm64).
Used Package Manager
pnpm
Validations
- Read the Contributing Guidelines.
- Checked that there isn't already an issue for the same bug.
- Confirmed this is a Vite+ issue and not an upstream issue (Oxlint alone behaves correctly, see above).
- The reproduction is a minimal reproducible example.
- Vorherrschende Sprache
- Rust
- Sterne
- 6.5k
- Forks
- 296
- Ø Merge
- 1 T. 5 Std.
- Gemergte PRs (30 T.)
- 224
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus voidzero-dev/vite-plus
-
pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
voidzero-dev/vite-plus#3235 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and laterEvtl. vergeben @kshanxs hat das vor 4 Tagen übernommen. Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
voidzero-dev/vite-plus#3219 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
voidzero-dev/vite-plus#2882 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 53/100
voidzero-dev/vite-plus#3254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Operate environment tools only when global-cli is installed with managed mode enabled in `vite-plus` packageEvtl. vergeben @liangmiQwQ hat das vor 1 Tag übernommen. Offenbug enhancement
voidzero-dev/vite-plus#3252 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in voidzero-dev/vite-plus
Ähnliche Issues
-
vorbis: Inverse coupling runs in wrong orderEvtl. vergeben @computerfan hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
area:kernel needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
bherbruck/solvecraft#8454 · 1 Reaktion ·
-
Add `Path.parent`Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
audit(c2): assert [profile.release] parity across RUST_MANIFESTS in scripts/ci/check-workfl (C2-26)Offenhygiene type:refactor
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag