@eggjs/tsconfig
Version:
Base tsconfig for egg ts project
39 lines (38 loc) • 1.41 kB
JSON
{
"compileOnSave": true,
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"strict": true,
// Warn on expressions and declarations with an implied 'any' type.
// Many npm pack do not has own definition, so not enable
"noImplicitAny": false,
// Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility
// and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
// Convenient for import assert from 'assert'
"esModuleInterop": true,
// Allow javascript files to be compiled.
// Egg compile to in place, will throw can not overwrite js file
"allowJs": false,
"pretty": true,
"noEmitOnError": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
// Ensure non-undefined class properties are initialized in the constructor.
// When use DI, properties will be implicitly init
"strictPropertyInitialization": false,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"inlineSourceMap": true,
"declaration": true,
"resolveJsonModule": true,
// Enables experimental support for ES7 decorators.
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"useUnknownInCatchVariables": true,
"incremental": false
}
}