-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
34 lines (34 loc) · 1.73 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
{
"compilerOptions": {
"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.
"baseUrl": ".",
"paths": {
"@applejelly/*": ["src/*"]
},
"outDir": "./dist",
"rootDir": "./src",
"moduleResolution": "node",
"esModuleInterop": true,
"sourceMap": true,
/* Bundler mode */
"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.
"noImplicitAny": false,
/* Linting */
"strict": true, // 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.
"declarationDir": "./dist/types"
},
"include": ["src"], // Specifies the directory to include when searching for TypeScript files.
"exclude": ["src/**/__docs__", "src/**/__test__"]
}