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
8 changes: 7 additions & 1 deletion packages/lint/linthost/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,13 @@ func typeScriptConfigLoaderTsconfig(loader, location, outDir string) string {
"noImplicitAny": false,
"outDir": filepath.ToSlash(filepath.Join(outDir, "out")),
"rewriteRelativeImportExtensions": true,
"rootDir": "/",
"rootDir": func() string {
vol := filepath.VolumeName(outDir)
if vol == "" {
return "/"
}
return filepath.ToSlash(vol + "\\")
}(),
Comment on lines +1356 to +1362
"skipLibCheck": true,
"strict": false,
"target": "ES2022",
Expand Down
2 changes: 1 addition & 1 deletion packages/lint/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ function evaluateTtsxConfigPlugins(
noImplicitAny: false,
outDir: path.join(tempDir, "out").replace(/\\/g, "/"),
rewriteRelativeImportExtensions: true,
rootDir: "/",
rootDir: path.parse(tempDir).root.replace(/\\/g, "/"),
skipLibCheck: true,
Comment on lines 565 to 568
strict: false,
target: "ES2022",
Expand Down
Loading