Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions packages/cli/binding/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,12 @@ async fn execute_direct_subcommand(
if fix {
args.push("--fix".to_string());
}
// `vp check` parses oxlint's human-readable summary output to print
// unified pass/fail lines. When `GITHUB_ACTIONS=true`, oxlint auto-switches
// to the GitHub reporter, which omits that summary on success and makes the
// parser think linting never started. Force the default reporter here so the
// captured output is stable across local and CI environments.
args.push("--format=default".to_string());
if has_paths {
args.extend(paths.iter().cloned());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "check-pass-typecheck-github-actions",
"version": "0.0.0",
"private": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> vp check
pass: All 4 files are correctly formatted (<variable>ms, <variable> threads)
pass: Found no warnings, lint errors, or type errors in 2 files (<variable>ms, <variable> threads)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function hello() {
return "hello";
}

export { hello };
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"env": {
"GITHUB_ACTIONS": "true",
"VITE_DISABLE_AUTO_INSTALL": "1"
},
"commands": ["vp check"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
lint: {
options: {
typeAware: true,
typeCheck: true,
},
},
};
Loading