1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

fix: consistent with deno_config and treat "experimentalDecorators" as deprecated (#25735)

This commit is contained in:
Kenta Moriuchi 2024-09-24 00:02:15 +09:00 committed by GitHub
parent cab3363026
commit be13da5d8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,18 +35,32 @@
"default": false, "default": false,
"markdownDescription": "Enable error reporting in type-checked JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#checkJs" "markdownDescription": "Enable error reporting in type-checked JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#checkJs"
}, },
"exactOptionalPropertyTypes": { "emitDecoratorMetadata": {
"description": "Differentiate between undefined and not present when type checking", "description": "Emit design-type metadata for decorated declarations in source files.",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"markdownDescription": "Differentiate between undefined and not present when type checking\n\nSee more: https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes" "deprecated": true,
"markdownDescription": "Emit design-type metadata for decorated declarations in source files.\n\nSee more: https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata"
},
"exactOptionalPropertyTypes": {
"description": "Interpret optional property types as written, rather than adding 'undefined'.",
"type": "boolean",
"default": false,
"markdownDescription": "Interpret optional property types as written, rather than adding 'undefined'.\n\nSee more: https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes"
}, },
"experimentalDecorators": { "experimentalDecorators": {
"description": "Enable experimental support for legacy experimental decorators.", "description": "Enable experimental support for legacy experimental decorators.",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"deprecated": true,
"markdownDescription": "Enable experimental support for legacy experimental decorators.\n\nSee more: https://www.typescriptlang.org/tsconfig#experimentalDecorators" "markdownDescription": "Enable experimental support for legacy experimental decorators.\n\nSee more: https://www.typescriptlang.org/tsconfig#experimentalDecorators"
}, },
"isolatedDeclarations": {
"description": "Require sufficient annotation on exports so other tools can trivially generate declaration files.",
"type": "boolean",
"default": false,
"markdownDescription": "Require sufficient annotation on exports so other tools can trivially generate declaration files.\n\nSee more: https://www.typescriptlang.org/tsconfig/#isolatedDeclarations"
},
"jsx": { "jsx": {
"description": "Specify what JSX code is generated.", "description": "Specify what JSX code is generated.",
"default": "react", "default": "react",
@ -91,12 +105,6 @@
}, },
"markdownDescription": "Specify list of elements that should be exempt from being precompiled when the jsx `precompile` transform is used." "markdownDescription": "Specify list of elements that should be exempt from being precompiled when the jsx `precompile` transform is used."
}, },
"keyofStringsOnly": {
"description": "Make keyof only return strings instead of string, numbers or symbols. Legacy option.",
"type": "boolean",
"default": false,
"markdownDescription": "Make keyof only return strings instead of string, numbers or symbols. Legacy option.\n\nSee more: https://www.typescriptlang.org/tsconfig#keyofStringsOnly"
},
"lib": { "lib": {
"description": "Specify a set of bundled library declaration files that describe the target runtime environment.", "description": "Specify a set of bundled library declaration files that describe the target runtime environment.",
"type": "array", "type": "array",
@ -143,23 +151,17 @@
"default": true, "default": true,
"markdownDescription": "Enable error reporting when `this` is given the type `any`.\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitThis" "markdownDescription": "Enable error reporting when `this` is given the type `any`.\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitThis"
}, },
"noImplicitUseStrict": {
"description": "Disable adding 'use strict' directives in emitted JavaScript files.",
"type": "boolean",
"default": true,
"markdownDescription": "Disable adding 'use strict' directives in emitted JavaScript files.\n\nSee more: https://www.typescriptlang.org/tsconfig#noImplicitUseStrict"
},
"noPropertyAccessFromIndexSignature": { "noPropertyAccessFromIndexSignature": {
"description": "Enforces using indexed accessors for keys declared using an indexed type.", "description": "Enforces using indexed accessors for keys declared using an indexed type.",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"markdownDescription": "Enforces using indexed accessors for keys declared using an indexed type.\n\nSee more: https://www.typescriptlang.org/tsconfig#noPropertyAccessFromIndexSignature" "markdownDescription": "Enforces using indexed accessors for keys declared using an indexed type.\n\nSee more: https://www.typescriptlang.org/tsconfig#noPropertyAccessFromIndexSignature"
}, },
"noStrictGenericChecks": { "noUncheckedIndexedAccess": {
"description": "Disable strict checking of generic signatures in function types.", "description": "Add `undefined` to a type when accessed using an index.",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"markdownDescription": "Disable strict checking of generic signatures in function types.\n\nSee more: https://www.typescriptlang.org/tsconfig#noStrictGenericChecks" "markdownDescription": "Add `undefined` to a type when accessed using an index.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess"
}, },
"noUnusedLocals": { "noUnusedLocals": {
"description": "Enable error reporting when a local variables aren't read.", "description": "Enable error reporting when a local variables aren't read.",
@ -173,12 +175,6 @@
"default": false, "default": false,
"markdownDescription": "Raise an error when a function parameter isn't read\n\nSee more: https://www.typescriptlang.org/tsconfig#noUnusedParameters" "markdownDescription": "Raise an error when a function parameter isn't read\n\nSee more: https://www.typescriptlang.org/tsconfig#noUnusedParameters"
}, },
"noUncheckedIndexedAccess": {
"description": "Add `undefined` to a type when accessed using an index.",
"type": "boolean",
"default": false,
"markdownDescription": "Add `undefined` to a type when accessed using an index.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess"
},
"strict": { "strict": {
"description": "Enable all strict type checking options.", "description": "Enable all strict type checking options.",
"type": "boolean", "type": "boolean",
@ -191,41 +187,49 @@
"default": true, "default": true,
"markdownDescription": "Check that the arguments for `bind`, `call`, and `apply` methods match the original function.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictBindCallApply" "markdownDescription": "Check that the arguments for `bind`, `call`, and `apply` methods match the original function.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictBindCallApply"
}, },
"strictBuiltinIteratorReturn": {
"description": "Built-in iterators are instantiated with a `TReturn` type of undefined instead of `any`.",
"type": "boolean",
"default": true,
"markdownDescription": "Built-in iterators are instantiated with a `TReturn` type of undefined instead of `any`.\n\nSee more: https://www.typescriptlang.org/tsconfig/#strictBuiltinIteratorReturn"
},
"strictFunctionTypes": { "strictFunctionTypes": {
"description": "When assigning functions, check to ensure parameters and the return values are subtype-compatible.", "description": "When assigning functions, check to ensure parameters and the return values are subtype-compatible.",
"type": "boolean", "type": "boolean",
"default": true, "default": true,
"markdownDescription": "When assigning functions, check to ensure parameters and the return values are subtype-compatible.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictFunctionTypes" "markdownDescription": "When assigning functions, check to ensure parameters and the return values are subtype-compatible.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictFunctionTypes"
}, },
"strictPropertyInitialization": {
"description": "Check for class properties that are declared but not set in the constructor.",
"type": "boolean",
"default": true,
"markdownDescription": "Check for class properties that are declared but not set in the constructor.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictPropertyInitialization"
},
"strictNullChecks": { "strictNullChecks": {
"description": "When type checking, take into account `null` and `undefined`.", "description": "When type checking, take into account `null` and `undefined`.",
"type": "boolean", "type": "boolean",
"default": true, "default": true,
"markdownDescription": "When type checking, take into account `null` and `undefined`.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictNullChecks" "markdownDescription": "When type checking, take into account `null` and `undefined`.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictNullChecks"
}, },
"suppressExcessPropertyErrors": { "strictPropertyInitialization": {
"description": "Disable reporting of excess property errors during the creation of object literals.", "description": "Check for class properties that are declared but not set in the constructor.",
"type": "boolean", "type": "boolean",
"default": false, "default": true,
"markdownDescription": "Disable reporting of excess property errors during the creation of object literals.\n\nSee more: https://www.typescriptlang.org/tsconfig#suppressExcessPropertyErrors" "markdownDescription": "Check for class properties that are declared but not set in the constructor.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictPropertyInitialization"
}, },
"suppressImplicitAnyIndexErrors": { "types": {
"description": "Suppress `noImplicitAny` errors when indexing objects that lack index signatures.", "description": "Specify type package names to be included without being referenced in a source file.",
"type": "boolean", "type": "array",
"default": false, "items": {
"markdownDescription": "Suppress `noImplicitAny` errors when indexing objects that lack index signatures.\n\nSee more: https://www.typescriptlang.org/tsconfig#suppressImplicitAnyIndexErrors" "type": "string"
},
"markdownDescription": "Specify type package names to be included without being referenced in a source file.\n\nSee more: https://www.typescriptlang.org/tsconfig/#types"
}, },
"useUnknownInCatchVariables": { "useUnknownInCatchVariables": {
"description": "Default catch clause variables as `unknown` instead of `any`.", "description": "Default catch clause variables as `unknown` instead of `any`.",
"type": "boolean", "type": "boolean",
"default": true, "default": true,
"markdownDescription": "Default catch clause variables as `unknown` instead of `any`.\n\nSee more: https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables" "markdownDescription": "Default catch clause variables as `unknown` instead of `any`.\n\nSee more: https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables"
},
"verbatimModuleSyntax": {
"description": "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.",
"type": "boolean",
"default": false,
"markdownDescription": "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.\n\nSee more: https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax"
} }
} }
}, },