Skip to content

Commit ed24d60

Browse files
committed
feat(linter): expose tsgolint program diagnostics (#15080)
1 parent a6b6ef8 commit ed24d60

File tree

5 files changed

+251
-137
lines changed

5 files changed

+251
-137
lines changed

apps/oxlint/fixtures/tsgolint_config_error/index.ts

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
}
5+
}

apps/oxlint/src/lint.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,4 +1323,11 @@ mod test {
13231323
.with_cwd("fixtures/tsgolint_disable_directives".into())
13241324
.test_and_snapshot(args);
13251325
}
1326+
1327+
#[test]
1328+
#[cfg(not(target_endian = "big"))]
1329+
fn test_tsgolint_config_error() {
1330+
let args = &["--type-aware"];
1331+
Tester::new().with_cwd("fixtures/tsgolint_config_error".into()).test_and_snapshot(args);
1332+
}
13261333
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
source: apps/oxlint/src/tester.rs
3+
---
4+
##########
5+
arguments: --type-aware
6+
working directory: fixtures/tsgolint_config_error
7+
----------
8+
Error running tsgolint: "exit status: exit status: 0, error: Option 'baseUrl' has been removed. Please remove it from your configuration."----------
9+
CLI result: TsGoLintError
10+
----------

0 commit comments

Comments
 (0)