diff --git a/src/schemas/json/tsconfig.json b/src/schemas/json/tsconfig.json index ae6710e78a2..18462a7ca67 100644 --- a/src/schemas/json/tsconfig.json +++ b/src/schemas/json/tsconfig.json @@ -180,7 +180,10 @@ }, "declarationDir": { "description": "Specify the output directory for generated declaration files.", - "type": ["string", "null"], + "type": [ + "string", + "null" + ], "markdownDescription": "Specify the output directory for generated declaration files.\n\nSee more: https://www.typescriptlang.org/tsconfig#declarationDir" }, "diagnostics": { @@ -240,7 +243,13 @@ }, "jsx": { "description": "Specify what JSX code is generated.", - "enum": ["preserve", "react", "react-jsx", "react-jsxdev", "react-native"] + "enum": [ + "preserve", + "react", + "react-jsx", + "react-jsxdev", + "react-native" + ] }, "reactNamespace": { "description": "Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.", @@ -292,13 +301,13 @@ "ES2020", "ESNext", "None", - "es2022", - "node12", - "nodenext" + "ES2022", + "Node12", + "NodeNext" ] }, { - "pattern": "^([Cc][Oo][Mm][Mm][Oo][Nn][Jj][Ss]|[AaUu][Mm][Dd]|[Ss][Yy][Ss][Tt][Ee][Mm]|[Ee][Ss]([356]|201[567]|2020|[Nn][Ee][Xx][Tt])|[Nn][Oo][Nn][Ee])$" + "pattern": "^([Cc][Oo][Mm][Mm][Oo][Nn][Jj][Ss]|[AaUu][Mm][Dd]|[Ss][Yy][Ss][Tt][Ee][Mm]|[Ee][Ss]([356]|20(1[567]|2[02])|[Nn][Ee][Xx][Tt])|[Nn][Oo][Nn][Ee])$" } ], "markdownDescription": "Specify what module code is generated.\n\nSee more: https://www.typescriptlang.org/tsconfig#module" @@ -308,7 +317,10 @@ "type": "string", "anyOf": [ { - "enum": ["Classic", "Node"] + "enum": [ + "Classic", + "Node" + ] }, { "pattern": "^(([Nn]ode)|([Cc]lassic))$" @@ -322,7 +334,10 @@ "type": "string", "anyOf": [ { - "enum": ["crlf", "lf"] + "enum": [ + "crlf", + "lf" + ] }, { "pattern": "^(CRLF|LF|crlf|lf)$" @@ -840,7 +855,11 @@ "importsNotUsedAsValues": { "description": "Specify emit/checking behavior for imports that are only used for types.", "default": "remove", - "enum": ["remove", "preserve", "error"] + "enum": [ + "remove", + "preserve", + "error" + ] }, "alwaysStrict": { "description": "Ensure 'use strict' is always emitted.", @@ -1038,7 +1057,9 @@ "type": "boolean" }, "ignore": { - "default": ["(?:^|/)node_modules/"], + "default": [ + "(?:^|/)node_modules/" + ], "description": "Paths which should not be compiled.\n\nEach string in the array is converted to a regular expression via `new RegExp()` and tested against source paths prior to compilation.\n\nSource paths are normalized to posix-style separators, relative to the directory containing `tsconfig.json` or to cwd if no `tsconfig.json` is loaded.\n\nDefault is to ignore all node_modules subdirectories.", "items": { "type": "string" @@ -1048,7 +1069,10 @@ "ignoreDiagnostics": { "description": "Ignore TypeScript warnings by diagnostic code.", "items": { - "type": ["string", "number"] + "type": [ + "string", + "number" + ] }, "type": "array" }, diff --git a/src/test/tsconfig/tsconfig-test.json b/src/test/tsconfig/tsconfig-test.json index 3c8457e6812..a848c92743d 100644 --- a/src/test/tsconfig/tsconfig-test.json +++ b/src/test/tsconfig/tsconfig-test.json @@ -1,6 +1,6 @@ { "compilerOptions": { "target": "ES2022", - "module": "CommonJS" + "module": "ES2022" } }