2021-12-08 19:22:39 +00:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
2023-01-15 22:58:55 +00:00
|
|
|
// input/output
|
|
|
|
"target": "es5",
|
|
|
|
"noLib": true, // "lib": ["es5"],
|
|
|
|
"skipLibCheck": false,
|
|
|
|
|
2022-01-20 20:23:17 +00:00
|
|
|
"module": "commonjs",
|
2023-01-15 22:58:55 +00:00
|
|
|
|
2023-03-09 20:45:37 +00:00
|
|
|
// toggle these to check everything (and optionally change the include below to "apps/myapp/*.js")
|
|
|
|
// "checkJs": true,
|
|
|
|
// "noEmit": true,
|
|
|
|
|
2024-04-25 11:56:06 +00:00
|
|
|
"ignoreDeprecations": "5.0",
|
|
|
|
|
2023-01-15 22:58:55 +00:00
|
|
|
// code-gen
|
|
|
|
"declaration": false,
|
|
|
|
"emitDeclarationOnly": false,
|
|
|
|
"removeComments": true,
|
2023-04-17 11:02:31 +00:00
|
|
|
"noImplicitUseStrict": true, // disable "use strict"
|
2023-01-15 22:58:55 +00:00
|
|
|
|
|
|
|
"newLine": "lf",
|
2023-02-22 22:19:20 +00:00
|
|
|
"noEmitHelpers": true, // we link to specific banglejs implementations
|
2023-01-20 22:29:15 +00:00
|
|
|
"noEmitOnError": false,
|
2023-01-15 22:58:55 +00:00
|
|
|
"preserveConstEnums": false,
|
|
|
|
"importsNotUsedAsValues": "error",
|
|
|
|
"preserveValueImports": false,
|
|
|
|
|
|
|
|
// interop constraints
|
|
|
|
"isolatedModules": false, // we're global scripts
|
|
|
|
|
|
|
|
// type checking
|
2021-12-08 19:22:39 +00:00
|
|
|
"noImplicitAny": true,
|
2021-12-10 20:36:42 +00:00
|
|
|
"noUncheckedIndexedAccess": true,
|
2023-01-15 22:58:55 +00:00
|
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
|
|
"noImplicitThis": true,
|
|
|
|
"noImplicitReturns": true,
|
|
|
|
"noImplicitOverride": true,
|
|
|
|
"exactOptionalPropertyTypes": true,
|
|
|
|
"useUnknownInCatchVariables": true,
|
2023-04-17 11:02:31 +00:00
|
|
|
//"strict": true, // can't have this with noImplicitUseStrict, instead:
|
|
|
|
"strictNullChecks": true,
|
|
|
|
"strictBindCallApply": true,
|
|
|
|
"strictFunctionTypes": true,
|
|
|
|
"strictPropertyInitialization": true,
|
|
|
|
"noImplicitAny": true,
|
|
|
|
"noImplicitThis": true,
|
|
|
|
"useUnknownInCatchVariables": true,
|
2023-01-15 22:58:55 +00:00
|
|
|
|
|
|
|
// simple type checking
|
2021-12-10 20:36:42 +00:00
|
|
|
"noUnusedLocals": true,
|
|
|
|
"noUnusedParameters": true,
|
2023-01-15 22:58:55 +00:00
|
|
|
"allowUnusedLabels": false,
|
|
|
|
"allowUnreachableCode": false,
|
|
|
|
|
|
|
|
// paths
|
|
|
|
"rootDir": "./",
|
|
|
|
"typeRoots": ["./typescript/types/"]
|
2021-12-10 20:19:01 +00:00
|
|
|
},
|
2023-01-15 22:58:55 +00:00
|
|
|
"include": [
|
|
|
|
"*/*/*.ts",
|
2023-03-09 20:45:37 +00:00
|
|
|
"apps/*/*.js", // with checkJs: true
|
2023-01-15 22:58:55 +00:00
|
|
|
"*/*/*.d.ts",
|
2024-05-24 16:18:46 +00:00
|
|
|
"modules/*.ts",
|
2023-01-15 22:58:55 +00:00
|
|
|
"typescript/types/*.d.ts"
|
|
|
|
]
|
2021-12-08 19:22:39 +00:00
|
|
|
}
|