-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.json
49 lines (40 loc) · 1.5 KB
/
node.json
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
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Shared node base",
"compilerOptions": {
"moduleResolution": "node",
// "module": "NodeNext",
"module": "esnext", // pulumi complains of es2022
"target": "esnext", // pulumi complains of es2022
// ----
// https://github.com/sindresorhus/tsconfig/blob/main/tsconfig.json
"lib": ["dom", "dom.iterable", "es2020"],
"allowSyntheticDefaultImports": true, // To provide backwards compatibility, Node.js allows you to import most CommonJS packages with a default import. This flag tells TypeScript that it's okay to use import on CommonJS modules.
"resolveJsonModule": true,
// ----
// from node18 base, but changed lib/module/target
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
// ----
// Our alterations to the base
// "allowSyntheticDefaultImports": true,
// Ensure that .d.ts files are created by tsc
"declaration": true,
// Do not allow js
"allowJs": false,
// No js, ts, maps when errors are reported
"noEmitOnError": true,
// Do not allow inference to fall back to any type
"noImplicitAny": true,
// Ensure a return path
"noImplicitReturns": true,
// Report errors on unused local variables.
"noUnusedLocals": false,
// obj[foo] suppression
// "suppressImplicitAnyIndexErrors": true, -- deprecated in 5.0
// vite suggestions
"useDefineForClassFields": true
}
}