mirror of https://github.com/espruino/BangleApps
Initial typescript config
parent
716af7c18b
commit
008f7f40e5
File diff suppressed because it is too large
Load Diff
|
@ -22,6 +22,7 @@
|
||||||
"update-local-apps": "apps/*/metadata.json"
|
"update-local-apps": "apps/*/metadata.json"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"acorn": "^7.2.0"
|
"acorn": "^7.2.0",
|
||||||
|
"typescript": "^4.9.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +1,52 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
// input/output
|
||||||
|
"target": "es5",
|
||||||
|
"noLib": true, // "lib": ["es5"],
|
||||||
|
"skipLibCheck": false,
|
||||||
|
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
|
|
||||||
|
// code-gen
|
||||||
|
"declaration": false,
|
||||||
|
"emitDeclarationOnly": false,
|
||||||
|
"removeComments": true,
|
||||||
|
|
||||||
|
"newLine": "lf",
|
||||||
|
"noEmitHelpers": true,
|
||||||
|
"noEmitOnError": true,
|
||||||
|
"preserveConstEnums": false,
|
||||||
|
"importsNotUsedAsValues": "error",
|
||||||
|
"preserveValueImports": false,
|
||||||
|
|
||||||
|
// interop constraints
|
||||||
|
"isolatedModules": false, // we're global scripts
|
||||||
|
|
||||||
|
// type checking
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"target": "es6",
|
|
||||||
"allowUnreachableCode": false,
|
|
||||||
"allowUnusedLabels": false,
|
|
||||||
"noImplicitOverride": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"noImplicitThis": true,
|
|
||||||
"noLib": true,
|
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
|
"noImplicitThis": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"exactOptionalPropertyTypes": true,
|
||||||
|
"useUnknownInCatchVariables": true,
|
||||||
|
"strict": true,
|
||||||
|
|
||||||
|
// simple type checking
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"strict": true,
|
"allowUnusedLabels": false,
|
||||||
"typeRoots": ["./typescript/types"]
|
"allowUnreachableCode": false,
|
||||||
|
|
||||||
|
// paths
|
||||||
|
"rootDir": "./",
|
||||||
|
"typeRoots": ["./typescript/types/"]
|
||||||
},
|
},
|
||||||
"include": ["./**/*"],
|
"include": [
|
||||||
"exclude": [
|
"*/*/*.ts",
|
||||||
"**/gpconv.d.ts",
|
"*/*/*.d.ts",
|
||||||
"**/gpconv_bg.wasm.d.ts"
|
"modules/*.d.ts",
|
||||||
|
"typescript/types/*.d.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue