schema
stringclasses
471 values
key
stringlengths
0
203
description
stringlengths
0
4.37k
object
stringlengths
2
322k
swcrc.json
Schema for the swc configuration file
{"$schema": "http://json-schema.org/draft-07/schema#", "anyOf": [{"type": "array", "items": {}}, {}], "definitions": {"fileMatcher": {"anyOf": [{"type": "string"}, {"type": "array", "items": {}}]}, "stringStringMap": {"type": "object", "patternProperties": {"": {"type": "string"}}}, "featureOrModule": {"anyOf": [{"type": "string"}, {"type": "string", "enum": ["transform-template-literals", "transform-literals", "transform-function-name", "transform-arrow-functions", "transform-block-scoped-functions", "transform-classes", "transform-object-super", "transform-shorthand-properties", "transform-duplicate-keys", "transform-computed-properties", "transform-for-of", "transform-sticky-regex", "transform-dotall-regex", "transform-unicode-regex", "transform-spread", "transform-parameters", "transform-destructuring", "transform-block-scoping", "transform-typeof-symbol", "transform-new-target", "transform-regenerator", "transform-exponentiation-operator", "transform-async-to-generator", "proposal-async-generator-functions", "proposal-object-rest-spread", "proposal-unicode-property-regex", "proposal-json-strings", "proposal-optional-catch-binding", "transform-named-capturing-groups-regex", "transform-member-expression-literals", "transform-property-literals", "transform-reserved-words", "proposal-nullish-coalescing-operator", "proposal-optional-chaining", "proposal-class-properties", "proposal-numeric-separator", "proposal-private-methods", "transform-unicode-escapes"]}]}, "envVersion": {"anyOf": [{"type": "string"}, {"type": "number"}]}, "envVersions": {"type": "object", "propertyNames": {"enum": ["chrome", "ie", "edge", "firefox", "safari", "node", "ios", "samsung", "opera", "android", "electron", "phantom", "operaMobile"]}, "patternProperties": {"": {}}}, "envQuery": {"oneOf": [{"type": "string"}, {"type": "array", "items": {"type": "string"}}]}, "envQueryOrVersion": {"oneOf": [{}, {}]}, "entryPoint": {"type": "object", "properties": {"env": {"type": "object", "properties": {"mode": {"type": "string", "enum": ["usage", "entry"]}, "debug": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "loose": {"type": "boolean"}, "skip": {"type": "array", "items": {"type": "string"}}, "include": {"type": "array", "items": {}}, "exclude": {"type": "array", "items": {}}, "coreJs": {"type": "string"}, "targets": {"oneOf": [{}, {"type": "object", "properties": {"esmodules": {"type": "boolean"}}, "additionalProperties": false}, {}, {"type": "object", "patternProperties": {"": {}}}]}, "shippedProposals": {"type": "boolean"}, "forceAllTransforms": {"type": "boolean"}, "bugfixes": {"type": "boolean"}}, "additionalProperties": false}, "test": {}, "exclude": {}, "minify": {"type": "boolean"}, "module": {"type": "object", "properties": {"type": {"type": "string", "enum": ["commonjs", "amd", "umd", "es6"]}, "strict": {"type": "boolean", "default": false}, "strictMode": {"type": "boolean", "default": true}, "lazy": {"anyOf": [{"type": "boolean"}, {"type": "array", "items": {"type": "string"}}], "default": false}, "noInterop": {"type": "boolean"}, "moduleId": {"type": "string"}, "globals": {}}, "required": ["type"], "additionalProperties": false}, "$schema": {"type": "string"}, "jsc": {"type": "object", "properties": {"parser": {"type": "object", "oneOf": [{"properties": {"syntax": {"enum": ["ecmascript"]}, "jsx": {"type": "boolean"}, "numericSeparator": {"type": "boolean"}, "classPrivateProperty": {"type": "boolean"}, "privateMethod": {"type": "boolean"}, "classProperty": {"type": "boolean"}, "functionBind": {"type": "boolean"}, "decorators": {"type": "boolean"}, "decoratorsBeforeExport": {"type": "boolean"}, "exportDefaultFrom": {"type": "boolean"}, "exportNamespaceFrom": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "nullishCoalescing": {"type": "boolean"}, "optionalChaining": {"type": "boolean"}, "importMeta": {"type": "boolean"}, "topLevelAwait": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}, {"properties": {"syntax": {"enum": ["typescript"]}, "tsx": {"type": "boolean"}, "decorators": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "dts": {"type": "boolean"}, "noEarlyErrors": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}]}, "transform": {"type": "object", "properties": {"react": {"type": "object", "properties": {"development": {"type": "boolean"}, "pragma": {"type": "string", "default": "React.createElement"}, "pragmaFrag": {"type": "string", "default": "React.Fragment"}, "refresh": {"type": "boolean", "default": false}, "runtime": {"type": "string", "enum": ["automatic", "classic"], "default": "classic"}, "throwIfNamespace": {"type": "boolean", "default": true}, "useBuiltins": {"type": "boolean"}}, "additionalProperties": false}, "constModules": {"type": "object", "properties": {"globals": {"type": "object", "patternProperties": {"": {}}}}, "additionalProperties": false}, "optimizer": {"type": "object", "properties": {"globals": {"type": "object", "properties": {"vars": {}, "envs": {"type": "array", "items": {"type": "string"}}}, "additionalProperties": false}, "jsonify": {"type": "object", "properties": {"minCost": {"type": "number"}}, "additionalProperties": false}}, "additionalProperties": false}, "legacyDecorator": {"type": "boolean"}, "decoratorMetadata": {"type": "boolean"}, "useDefineForClassFields": {"type": "boolean"}, "hidden": {"type": "object", "properties": {"jest": {"type": "boolean"}}, "additionalProperties": false}}, "additionalProperties": false}, "externalHelpers": {"type": "boolean"}, "preserveAllComments": {"type": "boolean"}, "target": {"type": "string", "enum": ["es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022", "esnext"]}, "loose": {"type": "boolean"}, "keepClassNames": {"type": "boolean"}, "paths": {"type": "object"}, "baseUrl": {"type": "string"}, "minify": {"type": "object"}, "experimental": {"type": "object", "minProperties": 1, "properties": {"keepImportAssertions": {"type": "boolean"}, "plugins": {"type": "array", "minItems": 1, "items": {"type": "array", "minItems": 2, "maxItems": 2, "items": [{"type": "string", "minLength": 1}, {"type": "object", "additionalProperties": true}]}}}, "additionalProperties": false}}, "additionalProperties": false}, "skipHelperInjection": {"type": "boolean"}, "disableHygiene": {"type": "boolean"}, "disableFixer": {"type": "boolean"}, "cwd": {"type": "string"}, "filename": {"type": "string"}, "root": {"type": "string"}, "swcrc": {"type": "boolean"}, "envName": {"type": "string"}, "sourceFileName": {"type": "string"}, "sourceRoot": {"type": "string"}, "isModule": {"type": "boolean"}, "globalMark": {"type": "number"}, "callerOptions": {"type": "object", "properties": {"name": {"type": "string"}}, "additionalProperties": false}, "configFile": {"anyOf": [{"type": "string"}, {"type": "boolean"}]}, "rootMode": {"enum": ["root", "upward", "upward-optional"]}, "inputSourceMap": {"anyOf": [{"type": "string"}, {"type": "boolean"}]}, "sourceMaps": {"anyOf": [{"type": "string"}, {"type": "boolean"}]}}, "additionalProperties": false}}}
swcrc.json
featureOrModule
CoreJS Module
{"type": "string"}
swcrc.json
featureOrModule
Feature
{"type": "string", "enum": ["transform-template-literals", "transform-literals", "transform-function-name", "transform-arrow-functions", "transform-block-scoped-functions", "transform-classes", "transform-object-super", "transform-shorthand-properties", "transform-duplicate-keys", "transform-computed-properties", "transform-for-of", "transform-sticky-regex", "transform-dotall-regex", "transform-unicode-regex", "transform-spread", "transform-parameters", "transform-destructuring", "transform-block-scoping", "transform-typeof-symbol", "transform-new-target", "transform-regenerator", "transform-exponentiation-operator", "transform-async-to-generator", "proposal-async-generator-functions", "proposal-object-rest-spread", "proposal-unicode-property-regex", "proposal-json-strings", "proposal-optional-catch-binding", "transform-named-capturing-groups-regex", "transform-member-expression-literals", "transform-property-literals", "transform-reserved-words", "proposal-nullish-coalescing-operator", "proposal-optional-chaining", "proposal-class-properties", "proposal-numeric-separator", "proposal-private-methods", "transform-unicode-escapes"]}
swcrc.json
envQuery
Query
{"oneOf": [{"type": "string"}, {"type": "array", "items": {"type": "string"}}]}
swcrc.json
envQuery
single query
{"type": "string"}
swcrc.json
envQuery
multiple queries
{"type": "array", "items": {"type": "string"}}
swcrc.json
envQueryOrVersion
QueryOrVersion
{"oneOf": [{}, {}]}
swcrc.json
entryPoint
Defines an entry point
{"type": "object", "properties": {"env": {"type": "object", "properties": {"mode": {"type": "string", "enum": ["usage", "entry"]}, "debug": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "loose": {"type": "boolean"}, "skip": {"type": "array", "items": {"type": "string"}}, "include": {"type": "array", "items": {}}, "exclude": {"type": "array", "items": {}}, "coreJs": {"type": "string"}, "targets": {"oneOf": [{}, {"type": "object", "properties": {"esmodules": {"type": "boolean"}}, "additionalProperties": false}, {}, {"type": "object", "patternProperties": {"": {}}}]}, "shippedProposals": {"type": "boolean"}, "forceAllTransforms": {"type": "boolean"}, "bugfixes": {"type": "boolean"}}, "additionalProperties": false}, "test": {}, "exclude": {}, "minify": {"type": "boolean"}, "module": {"type": "object", "properties": {"type": {"type": "string", "enum": ["commonjs", "amd", "umd", "es6"]}, "strict": {"type": "boolean", "default": false}, "strictMode": {"type": "boolean", "default": true}, "lazy": {"anyOf": [{"type": "boolean"}, {"type": "array", "items": {"type": "string"}}], "default": false}, "noInterop": {"type": "boolean"}, "moduleId": {"type": "string"}, "globals": {}}, "required": ["type"], "additionalProperties": false}, "$schema": {"type": "string"}, "jsc": {"type": "object", "properties": {"parser": {"type": "object", "oneOf": [{"properties": {"syntax": {"enum": ["ecmascript"]}, "jsx": {"type": "boolean"}, "numericSeparator": {"type": "boolean"}, "classPrivateProperty": {"type": "boolean"}, "privateMethod": {"type": "boolean"}, "classProperty": {"type": "boolean"}, "functionBind": {"type": "boolean"}, "decorators": {"type": "boolean"}, "decoratorsBeforeExport": {"type": "boolean"}, "exportDefaultFrom": {"type": "boolean"}, "exportNamespaceFrom": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "nullishCoalescing": {"type": "boolean"}, "optionalChaining": {"type": "boolean"}, "importMeta": {"type": "boolean"}, "topLevelAwait": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}, {"properties": {"syntax": {"enum": ["typescript"]}, "tsx": {"type": "boolean"}, "decorators": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "dts": {"type": "boolean"}, "noEarlyErrors": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}]}, "transform": {"type": "object", "properties": {"react": {"type": "object", "properties": {"development": {"type": "boolean"}, "pragma": {"type": "string", "default": "React.createElement"}, "pragmaFrag": {"type": "string", "default": "React.Fragment"}, "refresh": {"type": "boolean", "default": false}, "runtime": {"type": "string", "enum": ["automatic", "classic"], "default": "classic"}, "throwIfNamespace": {"type": "boolean", "default": true}, "useBuiltins": {"type": "boolean"}}, "additionalProperties": false}, "constModules": {"type": "object", "properties": {"globals": {"type": "object", "patternProperties": {"": {}}}}, "additionalProperties": false}, "optimizer": {"type": "object", "properties": {"globals": {"type": "object", "properties": {"vars": {}, "envs": {"type": "array", "items": {"type": "string"}}}, "additionalProperties": false}, "jsonify": {"type": "object", "properties": {"minCost": {"type": "number"}}, "additionalProperties": false}}, "additionalProperties": false}, "legacyDecorator": {"type": "boolean"}, "decoratorMetadata": {"type": "boolean"}, "useDefineForClassFields": {"type": "boolean"}, "hidden": {"type": "object", "properties": {"jest": {"type": "boolean"}}, "additionalProperties": false}}, "additionalProperties": false}, "externalHelpers": {"type": "boolean"}, "preserveAllComments": {"type": "boolean"}, "target": {"type": "string", "enum": ["es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022", "esnext"]}, "loose": {"type": "boolean"}, "keepClassNames": {"type": "boolean"}, "paths": {"type": "object"}, "baseUrl": {"type": "string"}, "minify": {"type": "object"}, "experimental": {"type": "object", "minProperties": 1, "properties": {"keepImportAssertions": {"type": "boolean"}, "plugins": {"type": "array", "minItems": 1, "items": {"type": "array", "minItems": 2, "maxItems": 2, "items": [{"type": "string", "minLength": 1}, {"type": "object", "additionalProperties": true}]}}}, "additionalProperties": false}}, "additionalProperties": false}, "skipHelperInjection": {"type": "boolean"}, "disableHygiene": {"type": "boolean"}, "disableFixer": {"type": "boolean"}, "cwd": {"type": "string"}, "filename": {"type": "string"}, "root": {"type": "string"}, "swcrc": {"type": "boolean"}, "envName": {"type": "string"}, "sourceFileName": {"type": "string"}, "sourceRoot": {"type": "string"}, "isModule": {"type": "boolean"}, "globalMark": {"type": "number"}, "callerOptions": {"type": "object", "properties": {"name": {"type": "string"}}, "additionalProperties": false}, "configFile": {"anyOf": [{"type": "string"}, {"type": "boolean"}]}, "rootMode": {"enum": ["root", "upward", "upward-optional"]}, "inputSourceMap": {"anyOf": [{"type": "string"}, {"type": "boolean"}]}, "sourceMaps": {"anyOf": [{"type": "string"}, {"type": "boolean"}]}}, "additionalProperties": false}
swcrc.json
skip
Skipped es-features. e.g.: 'core-js/modules/foo'
{"type": "array", "items": {"type": "string"}}
swcrc.json
targets
EsModules
{"type": "object", "properties": {"esmodules": {"type": "boolean"}}, "additionalProperties": false}
swcrc.json
targets
Versions
{}
swcrc.json
targets
HashMap
{"type": "object", "patternProperties": {"": {}}}
swcrc.json
test
Matches the files to include
{}
swcrc.json
exclude
Matches the files to exclude
{}
swcrc.json
minify
If true, swc will minify the output
{"type": "boolean"}
swcrc.json
module
Describes how swc will transpile the input
{"type": "object", "properties": {"type": {"type": "string", "enum": ["commonjs", "amd", "umd", "es6"]}, "strict": {"type": "boolean", "default": false}, "strictMode": {"type": "boolean", "default": true}, "lazy": {"anyOf": [{"type": "boolean"}, {"type": "array", "items": {"type": "string"}}], "default": false}, "noInterop": {"type": "boolean"}, "moduleId": {"type": "string"}, "globals": {}}, "required": ["type"], "additionalProperties": false}
swcrc.json
strict
If true, the __esModule property won't be added to the export
{"type": "boolean", "default": false}
swcrc.json
strictMode
If true, swc emits the 'use strict' directive
{"type": "boolean", "default": true}
swcrc.json
lazy
If true, lazy-initialize non local imports (not starting with ./)
{"type": "boolean"}
swcrc.json
lazy
Lazy-initialize all imports matching one of the given strings
{"type": "array", "items": {"type": "string"}}
swcrc.json
items
RegEx matching file(s)
{"type": "string"}
swcrc.json
noInterop
Disable the use of interopRequireDefault
{"type": "boolean"}
swcrc.json
moduleId
If emitting amd-modules and specified, swc emits a named amd module
{"type": "string"}
swcrc.json
jsc
Main Jsc configuration
{"type": "object", "properties": {"parser": {"type": "object", "oneOf": [{"properties": {"syntax": {"enum": ["ecmascript"]}, "jsx": {"type": "boolean"}, "numericSeparator": {"type": "boolean"}, "classPrivateProperty": {"type": "boolean"}, "privateMethod": {"type": "boolean"}, "classProperty": {"type": "boolean"}, "functionBind": {"type": "boolean"}, "decorators": {"type": "boolean"}, "decoratorsBeforeExport": {"type": "boolean"}, "exportDefaultFrom": {"type": "boolean"}, "exportNamespaceFrom": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "nullishCoalescing": {"type": "boolean"}, "optionalChaining": {"type": "boolean"}, "importMeta": {"type": "boolean"}, "topLevelAwait": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}, {"properties": {"syntax": {"enum": ["typescript"]}, "tsx": {"type": "boolean"}, "decorators": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "dts": {"type": "boolean"}, "noEarlyErrors": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}]}, "transform": {"type": "object", "properties": {"react": {"type": "object", "properties": {"development": {"type": "boolean"}, "pragma": {"type": "string", "default": "React.createElement"}, "pragmaFrag": {"type": "string", "default": "React.Fragment"}, "refresh": {"type": "boolean", "default": false}, "runtime": {"type": "string", "enum": ["automatic", "classic"], "default": "classic"}, "throwIfNamespace": {"type": "boolean", "default": true}, "useBuiltins": {"type": "boolean"}}, "additionalProperties": false}, "constModules": {"type": "object", "properties": {"globals": {"type": "object", "patternProperties": {"": {}}}}, "additionalProperties": false}, "optimizer": {"type": "object", "properties": {"globals": {"type": "object", "properties": {"vars": {}, "envs": {"type": "array", "items": {"type": "string"}}}, "additionalProperties": false}, "jsonify": {"type": "object", "properties": {"minCost": {"type": "number"}}, "additionalProperties": false}}, "additionalProperties": false}, "legacyDecorator": {"type": "boolean"}, "decoratorMetadata": {"type": "boolean"}, "useDefineForClassFields": {"type": "boolean"}, "hidden": {"type": "object", "properties": {"jest": {"type": "boolean"}}, "additionalProperties": false}}, "additionalProperties": false}, "externalHelpers": {"type": "boolean"}, "preserveAllComments": {"type": "boolean"}, "target": {"type": "string", "enum": ["es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022", "esnext"]}, "loose": {"type": "boolean"}, "keepClassNames": {"type": "boolean"}, "paths": {"type": "object"}, "baseUrl": {"type": "string"}, "minify": {"type": "object"}, "experimental": {"type": "object", "minProperties": 1, "properties": {"keepImportAssertions": {"type": "boolean"}, "plugins": {"type": "array", "minItems": 1, "items": {"type": "array", "minItems": 2, "maxItems": 2, "items": [{"type": "string", "minLength": 1}, {"type": "object", "additionalProperties": true}]}}}, "additionalProperties": false}}, "additionalProperties": false}
swcrc.json
parser
Configures the parser
{"type": "object", "oneOf": [{"properties": {"syntax": {"enum": ["ecmascript"]}, "jsx": {"type": "boolean"}, "numericSeparator": {"type": "boolean"}, "classPrivateProperty": {"type": "boolean"}, "privateMethod": {"type": "boolean"}, "classProperty": {"type": "boolean"}, "functionBind": {"type": "boolean"}, "decorators": {"type": "boolean"}, "decoratorsBeforeExport": {"type": "boolean"}, "exportDefaultFrom": {"type": "boolean"}, "exportNamespaceFrom": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "nullishCoalescing": {"type": "boolean"}, "optionalChaining": {"type": "boolean"}, "importMeta": {"type": "boolean"}, "topLevelAwait": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}, {"properties": {"syntax": {"enum": ["typescript"]}, "tsx": {"type": "boolean"}, "decorators": {"type": "boolean"}, "dynamicImport": {"type": "boolean"}, "dts": {"type": "boolean"}, "noEarlyErrors": {"type": "boolean"}, "importAssertions": {"type": "boolean"}}, "additionalProperties": false}]}
swcrc.json
jsx
If true, transform jsx
{"type": "boolean"}
swcrc.json
numericSeparator
Support numeric separator proposal (Stage 3)
{"type": "boolean"}
swcrc.json
classPrivateProperty
Support private class properties
{"type": "boolean"}
swcrc.json
privateMethod
Support private class methods
{"type": "boolean"}
swcrc.json
classProperty
Support class properties
{"type": "boolean"}
swcrc.json
functionBind
Support function bind expression
{"type": "boolean"}
swcrc.json
decorators
Enable decorators
{"type": "boolean"}
swcrc.json
tsx
If true, transform tsx
{"type": "boolean"}
swcrc.json
decorators
If true, transform decorators
{"type": "boolean"}
swcrc.json
dts
[DISABLED] If true, emit .d.ts files. This flag is currently skipped by serde.
{"type": "boolean"}
swcrc.json
noEarlyErrors
[DISABLED] This flag is currently skipped by serde.
{"type": "boolean"}
swcrc.json
decoratorMetadata
If true, decorator metadata is emitted. Make sure "Reflect" is present.
{"type": "boolean"}
swcrc.json
useDefineForClassFields
If false, the old behaviour is used and _defineProperty is not generated for class properties. https://swc.rs/docs/configuration/compilation#jsctransformusedefineforclassfields
{"type": "boolean"}
swcrc.json
externalHelpers
If true, this option will reduce the filesize by importing from an external module
{"type": "boolean"}
swcrc.json
preserveAllComments
If true, all comments will be preserved during compilation
{"type": "boolean"}
swcrc.json
target
Specifies the target environment
{"type": "string", "enum": ["es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022", "esnext"]}
swcrc.json
loose
If true, swc generates more efficient code
{"type": "boolean"}
swcrc.json
keepClassNames
Preserve original class names https://swc.rs/docs/configuration/compilation#jsckeepclassnames
{"type": "boolean"}
swcrc.json
paths
Should reflect "paths" property in project's tsconfig.json . See https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping
{"type": "object"}
swcrc.json
baseUrl
Should reflect "baseUrl" property in project's tsconfig.json . See https://www.typescriptlang.org/docs/handbook/module-resolution.html#base-url
{"type": "string"}
swcrc.json
minify
Minification options https://swc.rs/docs/configuration/minification
{"type": "object"}
swcrc.json
experimental
Experimental options https://swc.rs/docs/configuration/compilation#jscexperimental
{"type": "object", "minProperties": 1, "properties": {"keepImportAssertions": {"type": "boolean"}, "plugins": {"type": "array", "minItems": 1, "items": {"type": "array", "minItems": 2, "maxItems": 2, "items": [{"type": "string", "minLength": 1}, {"type": "object", "additionalProperties": true}]}}}, "additionalProperties": false}
swcrc.json
keepImportAssertions
Preserve import assertions if true. This is experimental because import assertions are not covered by ecmascript specifications yet.
{"type": "boolean"}
swcrc.json
plugins
A list of plugins to load
{"type": "array", "minItems": 1, "items": {"type": "array", "minItems": 2, "maxItems": 2, "items": [{"type": "string", "minLength": 1}, {"type": "object", "additionalProperties": true}]}}
swcrc.json
items
A tuple with a plugin name and its options
{"type": "array", "minItems": 2, "maxItems": 2, "items": [{"type": "string", "minLength": 1}, {"type": "object", "additionalProperties": true}]}
swcrc.json
items
Plugin name
{"type": "string", "minLength": 1}
swcrc.json
items
Plugin options
{"type": "object", "additionalProperties": true}
tsconfig.json
files
If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included.
{"type": "array", "uniqueItems": true, "items": {"type": "string"}}
tsconfig.json
exclude
Specifies a list of files to be excluded from compilation. The 'exclude' property only affects the files included via the 'include' property and not the 'files' property. Glob patterns require TypeScript version 2.0 or later.
{"type": "array", "uniqueItems": true, "items": {"type": "string"}}
tsconfig.json
include
Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later.
{"type": "array", "uniqueItems": true, "items": {"type": "string"}}
tsconfig.json
compileOnSave
Enable Compile-on-Save for this project.
{"type": "boolean"}
tsconfig.json
extends
Path to base configuration file to inherit from (requires TypeScript version 2.1 or later), or array of base files, with the rightmost files having the greater priority (requires TypeScript version 5.0 or later).
{"oneOf": [{"default": "", "type": "string"}, {"default": [], "items": {"type": "string"}, "type": "array"}]}
tsconfig.json
dry
~
{"type": "boolean", "default": false}
tsconfig.json
force
Build all projects, including those that appear to be up to date
{"type": "boolean", "default": false}
tsconfig.json
verbose
Enable verbose logging
{"type": "boolean", "default": false}
tsconfig.json
incremental
Save .tsbuildinfo files to allow for incremental compilation of projects.
{"type": "boolean", "default": false}
tsconfig.json
assumeChangesOnlyAffectDirectDependencies
Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.
{"type": "boolean", "default": false}
tsconfig.json
traceResolution
Log paths used during the `moduleResolution` process.
{"type": "boolean", "default": false}
tsconfig.json
watchOptions
Settings for the watch mode in TypeScript.
{"type": "object", "properties": {"force": {"type": "string"}, "watchFile": {"type": "string"}, "watchDirectory": {"type": "string"}, "fallbackPolling": {"type": "string"}, "synchronousWatchDirectory": {"type": "boolean"}, "excludeFiles": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, "excludeDirectories": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}}}
tsconfig.json
force
~
{"type": "string"}
tsconfig.json
watchFile
Specify how the TypeScript watch mode works.
{"type": "string"}
tsconfig.json
watchDirectory
Specify how directories are watched on systems that lack recursive file-watching functionality.
{"type": "string"}
tsconfig.json
fallbackPolling
Specify what approach the watcher should use if the system runs out of native file watchers.
{"type": "string"}
tsconfig.json
synchronousWatchDirectory
Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively.
{"type": "boolean"}
tsconfig.json
excludeFiles
Remove a list of files from the watch mode's processing.
{"type": "array", "uniqueItems": true, "items": {"type": "string"}}
tsconfig.json
excludeDirectories
Remove a list of directories from the watch process.
{"type": "array", "uniqueItems": true, "items": {"type": "string"}}
tsconfig.json
compilerOptions
Instructs the TypeScript compiler how to compile .ts files.
{"type": "object", "properties": {"allowArbitraryExtensions": {"type": "boolean"}, "allowImportingTsExtensions": {"type": "boolean"}, "charset": {"type": "string"}, "composite": {"type": "boolean", "default": true}, "customConditions": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, "declaration": {"type": "boolean", "default": false}, "declarationDir": {"type": ["string", "null"]}, "diagnostics": {"type": "boolean"}, "disableReferencedProjectLoad": {"type": "boolean"}, "noPropertyAccessFromIndexSignature": {"type": "boolean"}, "emitBOM": {"type": "boolean", "default": false}, "emitDeclarationOnly": {"type": "boolean", "default": false}, "exactOptionalPropertyTypes": {"type": "boolean", "default": false}, "incremental": {"type": "boolean"}, "tsBuildInfoFile": {"default": ".tsbuildinfo", "type": "string"}, "inlineSourceMap": {"type": "boolean", "default": false}, "inlineSources": {"type": "boolean", "default": false}, "jsx": {"enum": ["preserve", "react", "react-jsx", "react-jsxdev", "react-native"]}, "reactNamespace": {"type": "string", "default": "React"}, "jsxFactory": {"type": "string", "default": "React.createElement"}, "jsxFragmentFactory": {"type": "string", "default": "React.Fragment"}, "jsxImportSource": {"type": "string", "default": "react"}, "listFiles": {"type": "boolean", "default": false}, "mapRoot": {"type": "string"}, "module": {"type": "string", "anyOf": [{"enum": ["CommonJS", "AMD", "System", "UMD", "ES6", "ES2015", "ES2020", "ESNext", "None", "ES2022", "Node16", "NodeNext"]}, {"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][dD][Ee]16|[Nn][Oo][Dd][Ee][Nn][Ee][Xx][Tt]|[Nn][Oo][Nn][Ee])$"}]}, "moduleResolution": {"type": "string", "anyOf": [{"enum": ["Classic", "Node", "Node16", "NodeNext", "Bundler"]}, {"pattern": "^(([Nn]ode)|([Nn]ode16)|([Nn]ode[Nn]ext)|([Cc]lassic)|([Bb]undler))$"}], "default": "classic"}, "newLine": {"type": "string", "anyOf": [{"enum": ["crlf", "lf"]}, {"pattern": "^(CRLF|LF|crlf|lf)$"}]}, "noEmit": {"type": "boolean", "default": false}, "noEmitHelpers": {"type": "boolean", "default": false}, "noEmitOnError": {"type": "boolean", "default": false}, "noImplicitAny": {"type": "boolean"}, "noImplicitThis": {"type": "boolean"}, "noUnusedLocals": {"type": "boolean", "default": false}, "noUnusedParameters": {"type": "boolean", "default": false}, "noLib": {"type": "boolean", "default": false}, "noResolve": {"type": "boolean", "default": false}, "noStrictGenericChecks": {"type": "boolean", "default": false}, "skipDefaultLibCheck": {"type": "boolean", "default": false}, "skipLibCheck": {"type": "boolean", "default": false}, "outFile": {"type": "string"}, "outDir": {"type": "string"}, "preserveConstEnums": {"type": "boolean", "default": false}, "preserveSymlinks": {"type": "boolean", "default": false}, "preserveValueImports": {"type": "boolean", "default": false}, "preserveWatchOutput": {"type": "boolean"}, "pretty": {"type": "boolean", "default": true}, "removeComments": {"type": "boolean", "default": false}, "rootDir": {"type": "string"}, "isolatedModules": {"type": "boolean", "default": false}, "sourceMap": {"type": "boolean", "default": false}, "sourceRoot": {"type": "string"}, "suppressExcessPropertyErrors": {"type": "boolean", "default": false}, "suppressImplicitAnyIndexErrors": {"type": "boolean", "default": false}, "stripInternal": {"type": "boolean"}, "target": {"type": "string", "default": "ES3", "anyOf": [{"enum": ["ES3", "ES5", "ES6", "ES2015", "ES2016", "ES2017", "ES2018", "ES2019", "ES2020", "ES2021", "ES2022", "ES2023", "ESNext"]}, {"pattern": "^([Ee][Ss]([356]|(20(1[56789]|2[0123]))|[Nn][Ee][Xx][Tt]))$"}]}, "useUnknownInCatchVariables": {"type": "boolean", "default": false}, "watch": {"type": "boolean"}, "fallbackPolling": {"enum": ["fixedPollingInterval", "priorityPollingInterval", "dynamicPriorityPolling", "fixedInterval", "priorityInterval", "dynamicPriority", "fixedChunkSize"]}, "watchDirectory": {"enum": ["useFsEvents", "fixedPollingInterval", "dynamicPriorityPolling", "fixedChunkSizePolling"], "default": "useFsEvents"}, "watchFile": {"enum": ["fixedPollingInterval", "priorityPollingInterval", "dynamicPriorityPolling", "useFsEvents", "useFsEventsOnParentDirectory", "fixedChunkSizePolling"], "default": "useFsEvents"}, "experimentalDecorators": {"type": "boolean"}, "emitDecoratorMetadata": {"type": "boolean"}, "allowUnusedLabels": {"type": "boolean"}, "noImplicitReturns": {"type": "boolean", "default": false}, "noUncheckedIndexedAccess": {"type": "boolean"}, "noFallthroughCasesInSwitch": {"type": "boolean", "default": false}, "noImplicitOverride": {"type": "boolean", "default": false}, "allowUnreachableCode": {"type": "boolean"}, "forceConsistentCasingInFileNames": {"type": "boolean", "default": false}, "generateCpuProfile": {"type": "string", "default": "profile.cpuprofile"}, "baseUrl": {"type": "string"}, "paths": {"type": "object", "additionalProperties": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}}, "plugins": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string"}}}}, "rootDirs": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, "typeRoots": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, "types": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, "traceResolution": {"type": "boolean", "default": false}, "allowJs": {"type": "boolean", "default": false}, "noErrorTruncation": {"type": "boolean", "default": false}, "allowSyntheticDefaultImports": {"type": "boolean"}, "noImplicitUseStrict": {"type": "boolean", "default": false}, "listEmittedFiles": {"type": "boolean", "default": false}, "disableSizeLimit": {"type": "boolean", "default": false}, "lib": {"type": "array", "uniqueItems": true, "items": {"type": "string", "anyOf": [{"enum": ["ES5", "ES6", "ES2015", "ES2015.Collection", "ES2015.Core", "ES2015.Generator", "ES2015.Iterable", "ES2015.Promise", "ES2015.Proxy", "ES2015.Reflect", "ES2015.Symbol.WellKnown", "ES2015.Symbol", "ES2016", "ES2016.Array.Include", "ES2017", "ES2017.Intl", "ES2017.Object", "ES2017.SharedMemory", "ES2017.String", "ES2017.TypedArrays", "ES2018", "ES2018.AsyncGenerator", "ES2018.AsyncIterable", "ES2018.Intl", "ES2018.Promise", "ES2018.Regexp", "ES2019", "ES2019.Array", "ES2019.Intl", "ES2019.Object", "ES2019.String", "ES2019.Symbol", "ES2020", "ES2020.BigInt", "ES2020.Promise", "ES2020.String", "ES2020.Symbol.WellKnown", "ESNext", "ESNext.Array", "ESNext.AsyncIterable", "ESNext.BigInt", "ESNext.Intl", "ESNext.Promise", "ESNext.String", "ESNext.Symbol", "DOM", "DOM.Iterable", "ScriptHost", "WebWorker", "WebWorker.ImportScripts", "Webworker.Iterable", "ES7", "ES2021", "ES2020.SharedMemory", "ES2020.Intl", "ES2020.Date", "ES2020.Number", "ES2021.Promise", "ES2021.String", "ES2021.WeakRef", "ESNext.WeakRef", "ES2021.Intl", "ES2022", "ES2022.Array", "ES2022.Error", "ES2022.Intl", "ES2022.Object", "ES2022.String",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tt][Ss][Cc][Rr][Ii][Pp][Tt][Ss])?$"}]}}, "moduleDetection": {"enum": ["auto", "legacy", "force"]}, "strictNullChecks": {"type": "boolean", "default": false}, "maxNodeModuleJsDepth": {"type": "number", "default": 0}, "importHelpers": {"type": "boolean", "default": false}, "importsNotUsedAsValues": {"default": "remove", "enum": ["remove", "preserve", "error"]}, "alwaysStrict": {"type": "boolean"}, "strict": {"type": "boolean", "default": false}, "strictBindCallApply": {"type": "boolean", "default": false}, "downlevelIteration": {"type": "boolean", "default": false}, "checkJs": {"type": "boolean", "default": false}, "strictFunctionTypes": {"type": "boolean", "default": false}, "strictPropertyInitialization": {"type": "boolean", "default": false}, "esModuleInterop": {"type": "boolean", "default": false}, "allowUmdGlobalAccess": {"type": "boolean", "default": false}, "keyofStringsOnly": {"type": "boolean", "default": false}, "useDefineForClassFields": {"type": "boolean", "default": false}, "declarationMap": {"type": "boolean", "default": false}, "resolveJsonModule": {"type": "boolean", "default": false}, "resolvePackageJsonExports": {"type": "boolean", "default": false}, "resolvePackageJsonImports": {"type": "boolean", "default": false}, "assumeChangesOnlyAffectDirectDependencies": {"type": "boolean"}, "extendedDiagnostics": {"type": "boolean", "default": false}, "listFilesOnly": {"type": "boolean"}, "disableSourceOfProjectReferenceRedirect": {"type": "boolean"}, "disableSolutionSearching": {"type": "boolean"}, "verbatimModuleSyntax": {"type": "boolean"}}}
tsconfig.json
allowArbitraryExtensions
Enable importing files with any extension, provided a declaration file is present.
{"type": "boolean"}
tsconfig.json
allowImportingTsExtensions
Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set.
{"type": "boolean"}
tsconfig.json
charset
No longer supported. In early versions, manually set the text encoding for reading files.
{"type": "string"}
tsconfig.json
composite
Enable constraints that allow a TypeScript project to be used with project references.
{"type": "boolean", "default": true}
tsconfig.json
customConditions
Conditions to set in addition to the resolver-specific defaults when resolving imports.
{"type": "array", "uniqueItems": true, "items": {"type": "string"}}
tsconfig.json
declaration
Generate .d.ts files from TypeScript and JavaScript files in your project.
{"type": "boolean", "default": false}
tsconfig.json
declarationDir
Specify the output directory for generated declaration files.
{"type": ["string", "null"]}
tsconfig.json
diagnostics
Output compiler performance information after building.
{"type": "boolean"}
tsconfig.json
disableReferencedProjectLoad
Reduce the number of projects loaded automatically by TypeScript.
{"type": "boolean"}
tsconfig.json
noPropertyAccessFromIndexSignature
Enforces using indexed accessors for keys declared using an indexed type
{"type": "boolean"}
tsconfig.json
emitBOM
Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
{"type": "boolean", "default": false}
tsconfig.json
emitDeclarationOnly
Only output d.ts files and not JavaScript files.
{"type": "boolean", "default": false}
tsconfig.json
exactOptionalPropertyTypes
Differentiate between undefined and not present when type checking
{"type": "boolean", "default": false}
tsconfig.json
incremental
Enable incremental compilation. Requires TypeScript version 3.4 or later.
{"type": "boolean"}
tsconfig.json
tsBuildInfoFile
Specify the folder for .tsbuildinfo incremental compilation files.
{"default": ".tsbuildinfo", "type": "string"}
tsconfig.json
inlineSourceMap
Include sourcemap files inside the emitted JavaScript.
{"type": "boolean", "default": false}
tsconfig.json
inlineSources
Include source code in the sourcemaps inside the emitted JavaScript.
{"type": "boolean", "default": false}
tsconfig.json
jsx
Specify what JSX code is generated.
{"enum": ["preserve", "react", "react-jsx", "react-jsxdev", "react-native"]}
tsconfig.json
reactNamespace
Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.
{"type": "string", "default": "React"}
tsconfig.json
jsxFactory
Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'
{"type": "string", "default": "React.createElement"}
tsconfig.json
jsxFragmentFactory
Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
{"type": "string", "default": "React.Fragment"}
tsconfig.json
jsxImportSource
Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx`.
{"type": "string", "default": "react"}
tsconfig.json
listFiles
Print all of the files read during the compilation.
{"type": "boolean", "default": false}
tsconfig.json
mapRoot
Specify the location where debugger should locate map files instead of generated locations.
{"type": "string"}
tsconfig.json
module
Specify what module code is generated.
{"type": "string", "anyOf": [{"enum": ["CommonJS", "AMD", "System", "UMD", "ES6", "ES2015", "ES2020", "ESNext", "None", "ES2022", "Node16", "NodeNext"]}, {"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][dD][Ee]16|[Nn][Oo][Dd][Ee][Nn][Ee][Xx][Tt]|[Nn][Oo][Nn][Ee])$"}]}
tsconfig.json
moduleResolution
Specify how TypeScript looks up a file from a given module specifier.
{"type": "string", "anyOf": [{"enum": ["Classic", "Node", "Node16", "NodeNext", "Bundler"]}, {"pattern": "^(([Nn]ode)|([Nn]ode16)|([Nn]ode[Nn]ext)|([Cc]lassic)|([Bb]undler))$"}], "default": "classic"}
tsconfig.json
newLine
Set the newline character for emitting files.
{"type": "string", "anyOf": [{"enum": ["crlf", "lf"]}, {"pattern": "^(CRLF|LF|crlf|lf)$"}]}
tsconfig.json
noEmit
Disable emitting file from a compilation.
{"type": "boolean", "default": false}