-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
49 lines (45 loc) · 1.32 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
42
43
44
45
46
47
48
49
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"jsx": "react-jsx",
"lib": [ "esnext", "dom", "dom.iterable", "es2022" ],
// Search under node_modules for non-relative imports.
"moduleResolution": "node",
"sourceMap": true,
// Enable the strictest settings like strictNullChecks & noImplicitAny.
"strict": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"strictNullChecks": true,
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
// Import non-ES modules as default imports."esModuleInterop": true,
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Generate d.ts files
"declaration": true,
"declarationMap": true,
"declarationDir": "build/types",
"emitDeclarationOnly": true,
"pretty": true,
// Types should go into this directory.
// Removing this would place the .d.ts files
// next to the .js files
"outDir": "build",
"typeRoots": [
"node_modules/@types",
"@types"
],
"types": [
"mapbox-gl",
"mapbox__mapbox-gl-geocoder",
"puppeteer",
"jest-environment-puppeteer",
"expect-puppeteer"
]
},
"include": ["src/**/*", "block.json"],
"exclude": ["build","coverage"]
}