-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
41 lines (34 loc) · 1.12 KB
/
tsconfig.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
{
"compilerOptions": {
"module": "ESNext",
"target": "ES6",
"moduleResolution": "node",
"strict": true,
// This will enable Node and browser built-ins.
"lib": ["ES2022", "DOM", "DOM.Iterable"],
// Allow import of JSON files in TypeScript files.
// Esbuild supports this by default.
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
// Esbuild TypeScript caveats.
// https://esbuild.github.io/content-types/#typescript-caveats
"esModuleInterop": true,
"isolatedModules": true,
"useDefineForClassFields": false,
// TypeScript settings for Preact.
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
// Make sure VSCode imports types with the type keyword.
"verbatimModuleSyntax": true,
// To make the application compile, we need to disable type checking on node_modules like this.
// This way, defined alias' will work properly when libraries import React.
"skipLibCheck": true,
// Path aliases.
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": ["src/", "src/locales/*.json"]
}