@cyansalt/tsconfig
v3.0.2
Published
My TypeScript configuration
Downloads
398
Readme
@cyansalt/tsconfig
My TypeScript configuration.
Installation
npm install --save-dev @cyansalt/tsconfigUsage
// tsconfig.json
{
"extends": "@cyansalt/tsconfig"
}You may choose to extend from any of the following files:
@cyansalt/tsconfig: The default configuration featuring lightweight type checking, suitable for projects that heavily utilize dynamic typing features.@cyansalt/tsconfig/tsconfig.strict.json: Another more stringent configuration with the strictest type checking.@cyansalt/tsconfig/tsconfig.legacy.json: Equivalent to the default configuration behavior in older versions in the latest version of TypeScript. It is used for migration to the latest version.
By default, tsc will not output any files when using the above configuration. The following configuration may be additionally required:
// tsconfig.json
{
"compilerOptions": {
// To emit .js files when compiling
"noEmit": false,
// To emit .d.ts files when compiling
"declaration": true
}
}In addition, you will also need to specify the files to be included (include) or excluded (exclude) yourself.
For more information, see TSConfig.
