1
0
Fork 0
BangleApps/tsconfig.json

68 lines
1.8 KiB
JSON
Raw Permalink Normal View History

{
"compilerOptions": {
2023-01-15 22:58:55 +00:00
// input/output
"target": "es5",
"noLib": true, // "lib": ["es5"],
"skipLibCheck": false,
"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,
"noImplicitUseStrict": true, // disable "use strict"
2023-01-15 22:58:55 +00:00
"newLine": "lf",
"noEmitHelpers": true, // we link to specific banglejs implementations
"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
"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,
//"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/"]
},
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",
"modules/*.ts",
2023-01-15 22:58:55 +00:00
"typescript/types/*.d.ts"
]
}