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
46 changes: 35 additions & 11 deletions src/schemas/json/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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"
Expand All @@ -308,7 +317,10 @@
"type": "string",
"anyOf": [
{
"enum": ["Classic", "Node"]
"enum": [
"Classic",
"Node"
]
},
{
"pattern": "^(([Nn]ode)|([Cc]lassic))$"
Expand All @@ -322,7 +334,10 @@
"type": "string",
"anyOf": [
{
"enum": ["crlf", "lf"]
"enum": [
"crlf",
"lf"
]
},
{
"pattern": "^(CRLF|LF|crlf|lf)$"
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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"
Expand All @@ -1048,7 +1069,10 @@
"ignoreDiagnostics": {
"description": "Ignore TypeScript warnings by diagnostic code.",
"items": {
"type": ["string", "number"]
"type": [
"string",
"number"
]
},
"type": "array"
},
Expand Down
2 changes: 1 addition & 1 deletion src/test/tsconfig/tsconfig-test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "CommonJS"
"module": "ES2022"
}
}