-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjsconfig.json
More file actions
77 lines (77 loc) · 2.75 KB
/
Copy pathjsconfig.json
File metadata and controls
77 lines (77 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"compilerOptions": {
"rootDir": ".",
"rootDirs": ["."],
"lib": ["esnext", "dom", "scripthost", "webworker.importscripts"],
// TS6: "ES2025" - default
// TS6: "DOM", "DOM.iterable", "DOM.asynciterable" -> merged into "DOM"
// full list: https://github.com/microsoft/TypeScript/tree/main/src/lib
"target": "ESNext",
// "ES3" (TS6 removed), "ES5" (TS6 removed),
// "ES6", "ES2015", "ES2016", "ES2017", "ES2018", "ES2019"
// "ES2020", "ES2021", "ES2022", "ES2023", "ES2024", "ES2025", "ESNext",
"module": "ESNext",
// "NONE, "CommonJS", "UMD", "AMD", "System",
// "ES6", "ES2015", "ES2020", "ES2022", "ES2022", "ESNext"
// "node16", "node18", "node20", "nodenext", "preserve",
//"moduleResolution": "nodenext",
// "node16", "nodenext", "node10", "bundler"
"checkJs": true,
"strict": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"alwaysStrict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": false,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": false,
"noPropertyAccessFromIndexSignature": false,
"noUncheckedIndexedAccess": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"useUnknownInCatchVariables": true,
"allowUmdGlobalAccess": true,
"noUncheckedSideEffectImports": true,
"libReplacement": false,
"esModuleInterop": true,
"sourceMap": true,
"newLine": "CRLF", // "CRLF", "LF",
"allowSyntheticDefaultImports": true,
// from https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html
// Tells TypeScript to read JS files, as normally they are ignored as source files
"allowJs": true,
// Generate d.ts files
"declaration": true,
// This compiler run should only output d.ts files
// go to js file when using IDE functions like "Go to Definition" in VSCode
"declarationMap": true,
"emitDeclarationOnly": false,
// Types should go into this directory.
// Removing this would place the .d.ts files next to the .js files
"outDir": "."
},
"files": ["./celestra.js"],
//"include": ["src/**/*"],
"include": ["./*.ts"],
/*
"exclude": [
"./celestra.esm.js",
"./celestra.min.js",
"./celestra.node.js",
"./celestra-assert-plugin.dev.js",
"./celestra-assert-plugin.min.js",
"./celestra-polyfills.dev.js",
"./celestra-polyfills.min.js",
"./unittest-is1.js",
"./unittest-is2.js",
"./unittest-is3.js",
"./unittest-module1.js",
"./unittest-module2.js"
]
*/
}