-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
39 lines (37 loc) · 1.84 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
{
"compilerOptions": {
"target": "ES6", // 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.
"baseUrl": ".",
"paths": {
"@/*": ["./*"],
"@src/*": ["./src/*"],
"@assets/*": ["./src/assets/*"],
"@components/*": ["./src/components/*"],
"@helpers/*": ["./src/helpers/*"],
"@hooks/*": ["./src/hooks/*"],
"@interfaces/*": ["./src/interfaces/*"]
},
"esModuleInterop": true,
"allowJs": true,
"typeRoots": ["./src/declarations.d.ts"],
/* Bundler mode */
"moduleResolution": "Bundler", // Specifies how modules are resolved when bundling.
"allowImportingTsExtensions": true, // Allows importing TypeScript files with extensions.
"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-jsx", // Configures JSX support for React.
/* Linting */
"strict": false, // Enables strict type checking.
"noUnusedLocals": false, // Flags unused local variables.
"noUnusedParameters": false, // Flags unused function parameters.
"noFallthroughCasesInSwitch": true, // Requires handling all cases in a switch statement.
"declaration": true // Generates declaration files for TypeScript.
},
"include": ["src/**/*", "setupTests.ts"], // Specifies the directory to include when searching for TypeScript files.
"exclude": ["src/**/__docs__", "src/**/__test__"]
}