-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
58 lines (54 loc) · 1.94 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
50
51
52
53
54
55
56
57
58
{
"compilerOptions": {
"plugins": [{
"name": "typescript-plugin-css-modules",
"options": {
//"classnameTransform": "camelCase",
//"goToDefinition": true,
},
}],
// Emission
"noEmit": true, // Do not emit by default (only type check)
//"emitDeclarationOnly": true,
"target": "es2022", // JavaScript language version to emit
"module": "es2022", // The type of file to emit (CommonJS/ESM/etc.)
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
// Imports
"moduleResolution": "bundler", // Resolve import specifiers like bundlers (allows explicit file extensions)
"allowImportingTsExtensions": true, // Allow importing `.ts` extensions
"allowJs": true, // If `true` allows to import `.js` files
"resolveJsonModule": true, // Allow importing `.json` files
"forceConsistentCasingInFileNames": true, // Do not allow case-insensitive import file name matching
"paths": {
//"@": ["./src"],
},
"types": [
// See explanation in `node_modules/@types/react-dom/experimental.d.ts`
"react/experimental",
"react-dom/experimental",
],
// Type checking
"lib": ["es2023", "DOM", "DOM.Iterable"], // Library declaration files to include (globally)
"skipLibCheck": true, // Do not type check declaration files (for performance)
"noErrorTruncation": true,
// Language
"isolatedModules": true, // Restrict language features not compatible with tools like babel
"strict": true,
"exactOptionalPropertyTypes": true,
"noUncheckedIndexedAccess": true,
"useDefineForClassFields": true,
"jsx": "preserve",
},
"exclude": [
"node_modules",
"**/*.spec.ts",
"src/components/navigations/Tabs/Tabs.stories.tsx", // TEMP: need to fix a few type errors
],
"include": [
//"vite.config.ts",
"app/**/*",
"src/**/*",
],
"references": [{ "path": "./tsconfig.node.json" }],
}