-
Notifications
You must be signed in to change notification settings - Fork 3
/
tsconfig.json
37 lines (35 loc) · 1.51 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
{
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
"include": [
"src",
"types",
// root files
".eslintrc.cjs",
"rollup.config.js",
"tsdx.config.js"
],
"exclude": [],
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",
"target": "ES5", // Specifies the JavaScript version to target when transpiling code.
"useDefineForClassFields": true, // Enables the use of 'define' for class fields.
"lib": ["ES2020", "DOM", "DOM.Iterable"], // Specifies the libraries available for the code.
"module": "ESNext", // Defines the module system to use for code generation.
"skipLibCheck": true, // Skips type checking of declaration files.
/* Bundler mode */
"moduleResolution": "node", // Specifies how modules are resolved when bundling.
"resolveJsonModule": true, // Enables importing JSON modules.
"isolatedModules": true, // Ensures each file is treated as a separate module.
"noEmit": true, // Prevents TypeScript from emitting output files.
"jsx": "react", // Configures JSX support for React.
/* Linting */
"strict": true, // Enables strict type checking.
"noUnusedLocals": true, // Flags unused local variables.
"noUnusedParameters": true, // Flags unused function parameters.
"noFallthroughCasesInSwitch": true, // Requires handling all cases in a switch statement.
"declaration": true, // Generates declaration files for TypeScript.
"declarationDir": "dist",
"allowSyntheticDefaultImports": true
}
}