1
0
Fork 0

Initial typescript config

master
Rob Pilling 2023-01-15 22:58:55 +00:00
parent 716af7c18b
commit 008f7f40e5
4 changed files with 1058 additions and 446 deletions

1442
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,7 @@
"update-local-apps": "apps/*/metadata.json"
},
"dependencies": {
"acorn": "^7.2.0"
"acorn": "^7.2.0",
"typescript": "^4.9.4"
}
}

View File

@ -1,23 +1,52 @@
{
"compilerOptions": {
// input/output
"target": "es5",
"noLib": true, // "lib": ["es5"],
"skipLibCheck": false,
"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,
"target": "es6",
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noLib": true,
"noUncheckedIndexedAccess": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitThis": true,
"noImplicitReturns": true,
"noImplicitOverride": true,
"exactOptionalPropertyTypes": true,
"useUnknownInCatchVariables": true,
"strict": true,
// simple type checking
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"typeRoots": ["./typescript/types"]
"allowUnusedLabels": false,
"allowUnreachableCode": false,
// paths
"rootDir": "./",
"typeRoots": ["./typescript/types/"]
},
"include": ["./**/*"],
"exclude": [
"**/gpconv.d.ts",
"**/gpconv_bg.wasm.d.ts"
]
"include": [
"*/*/*.ts",
"*/*/*.d.ts",
"modules/*.d.ts",
"typescript/types/*.d.ts"
]
}

View File

@ -13299,4 +13299,4 @@ declare module "Storage" {
* @url http://www.espruino.com/Reference#l_Storage_open
*/
function open(name: string, mode: "r" | "w" | "a"): StorageFile;
}
}