TypeScript/src/tsconfig-base.json

30 lines
703 B
JSON
Raw Normal View History

2017-01-12 16:46:55 +01:00
{
"compilerOptions": {
2018-06-10 01:48:08 +02:00
"pretty": true,
"lib": ["es2015.iterable", "es2015.generator", "es5"],
2018-06-10 01:48:08 +02:00
"target": "es5",
"rootDir": ".",
2018-06-10 01:48:08 +02:00
"declaration": true,
2018-06-11 04:28:38 +02:00
"declarationMap": true,
2018-06-10 01:48:08 +02:00
"sourceMap": true,
"composite": true,
"noEmitOnError": true,
2018-06-10 01:48:08 +02:00
Enable '--strictNullChecks' (#22088) * Enable '--strictNullChecks' * Fix API baselines * Make sys.getEnvironmentVariable non-nullable * make properties optional instead of using `| undefined` in thier type * reportDiagnostics should be required * Declare firstAccessor as non-nullable * Make `some` a type guard * Fix `getEnvironmentVariable` definition in tests * Pretend transformFlags are always defined * Fix one more use of sys.getEnvironmentVariable * `requiredResponse` accepts undefined, remove assertions * Mark optional properties as optional instead of using `| undefined` * Mark optional properties as optional instead of using ` | undefined` * Remove unnecessary null assertions * Put the bang on the declaration instead of every use * Make `createMapFromTemplate` require a parameter * Mark `EmitResult.emittedFiles` and `EmitResult.sourceMaps` as optional * Plumb through undefined in emitLsit and EmitExpressionList * `ElementAccessExpression.argumentExpression` can not be `undefined` * Add overloads for `writeTokenText` * Make `shouldWriteSeparatingLineTerminator` argument non-nullable * Make `synthesizedNodeStartsOnNewLine` argument required * `PropertyAssignment.initializer` cannot be undefined * Use one `!` at declaration site instead of on every use site * Capture host in a constant and avoid null assertions * Remove few more unused assertions * Update baselines * Use parameter defaults * Update baselines * Fix lint * Make Symbol#valueDeclaration and Symbol#declarations non-optional to reduce assertions * Make Node#symbol and Type#symbol non-optional to reduce assertions * Make `flags` non-nullable to reduce assertions * Convert some asserts to type guards * Make `isNonLocalAlias` a type guard * Add overload for `getSymbolOfNode` for `Declaration` * Some more `getSymbolOfNode` changes * Push undefined suppression into `typeToTypeNodeHelper` * `NodeBuilderContext.tracker` is never `undefined` * use `Debug.assertDefined` * Remove unnecessary tag * Mark `LiteralType.freshType` and `LiteralTupe.regularType` as required
2018-05-22 23:46:57 +02:00
"strictNullChecks": true,
2017-01-12 16:46:55 +01:00
"noImplicitAny": true,
"noImplicitThis": true,
"strictPropertyInitialization": true,
2017-01-12 16:46:55 +01:00
"noUnusedLocals": true,
"noUnusedParameters": true,
2018-06-10 01:48:08 +02:00
2018-06-14 20:17:37 +02:00
"skipLibCheck": true,
"alwaysStrict": true,
2017-01-12 16:46:55 +01:00
"preserveConstEnums": true,
"newLine": "lf",
2018-06-10 01:48:08 +02:00
2017-01-17 17:02:39 +01:00
"types": []
2017-01-12 16:46:55 +01:00
}
}