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
Empty file.
5 changes: 5 additions & 0 deletions apps/oxlint/fixtures/tsgolint_config_error/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"baseUrl": ".",
}
}
7 changes: 7 additions & 0 deletions apps/oxlint/src/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1323,4 +1323,11 @@ mod test {
.with_cwd("fixtures/tsgolint_disable_directives".into())
.test_and_snapshot(args);
}

#[test]
#[cfg(not(target_endian = "big"))]
fn test_tsgolint_config_error() {
let args = &["--type-aware"];
Tester::new().with_cwd("fixtures/tsgolint_config_error".into()).test_and_snapshot(args);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
source: apps/oxlint/src/tester.rs
---
##########
arguments: --type-aware
working directory: fixtures/tsgolint_config_error
----------
Error running tsgolint: "exit status: exit status: 0, error: Option 'baseUrl' has been removed. Please remove it from your configuration."----------
CLI result: TsGoLintError
----------
Loading
Loading