Initial typescript config

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

1320
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" "update-local-apps": "apps/*/metadata.json"
}, },
"dependencies": { "dependencies": {
"acorn": "^7.2.0" "acorn": "^7.2.0",
"typescript": "^4.9.4"
} }
} }

View File

@ -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"
] ]
} }