-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.app.json
61 lines (55 loc) · 2.09 KB
/
tsconfig.app.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
59
60
61
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
// Emission
"noEmit": true, // Do not emit by default (only type check)
//"emitDeclarationOnly": false,
"target": "ESNext", // JavaScript language version to emit
"module": "ESNext", // 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)
"moduleDetection": "force", // Enforce that we're always using ESM
"isolatedModules": true, // Restrict language features not compatible with tools like babel
"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"],
},
// 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
"strict": true,
"exactOptionalPropertyTypes": true,
"noUncheckedIndexedAccess": true,
"useDefineForClassFields": true, // Use latest ES spec version of class fields
"jsx": "react-jsx",
// Linting
//"noUnusedLocals": true,
//"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
// Check CSS module class names in the IDE
"plugins": [{
"name": "typescript-plugin-css-modules",
"options": {
//"classnameTransform": "camelCase",
//"goToDefinition": true,
},
}],
},
"include": [
"app",
"src",
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"src/components/navigations/Tabs/Tabs.stories.tsx", // FIXME: need to fix a few type errors
],
}