From f347e779e0d1321d19a61de67295e7bd5edc3083 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 18 Sep 2024 20:49:16 +0200 Subject: fix: error on unsupported compiler options (#25714) Update the config schema to error when adding unsupported `compilerOptions`. Fixes https://github.com/denoland/deno/issues/25696 --- cli/schemas/config-file.v1.json | 1 + 1 file changed, 1 insertion(+) (limited to 'cli') diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json index 96b7c4bed..adbddafd6 100644 --- a/cli/schemas/config-file.v1.json +++ b/cli/schemas/config-file.v1.json @@ -9,6 +9,7 @@ "compilerOptions": { "type": "object", "description": "Instructs the TypeScript compiler how to compile .ts files.", + "additionalProperties": false, "properties": { "allowJs": { "description": "Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.", -- cgit v1.2.3