mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Report error if commanline only option is specified in tsconfig (#53397)
This commit is contained in:
1 parent
79a414bb5e
commit
8814f6da48
6 files changed
+63
-11
No files matched your search
@@ -342,6 +342,17 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", ()
|
||||
allFileList: ["/apath/a.ts"],
|
||||
}]);
|
||||
|
||||
baselinedParsed("generates errors when commandline option is in tsconfig", () => [{
|
||||
jsonText: JSON.stringify({
|
||||
compilerOptions: {
|
||||
help: true,
|
||||
}
|
||||
}),
|
||||
configFileName: "/apath/tsconfig.json",
|
||||
basePath: "tests/cases/unittests",
|
||||
allFileList: ["/apath/a.ts"],
|
||||
}]);
|
||||
|
||||
function baselineWildcards(subScenario: string, scenario: () => { configFileName: string, jsonText: string, basePath: string }[]) {
|
||||
baselineParseConfig({
|
||||
scenario: "tsconfigParsing",
|
||||
|
||||
Reference in new issue
Block a user