-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
61 lines (61 loc) · 2.3 KB
/
Copy pathtsconfig.json
File metadata and controls
61 lines (61 loc) · 2.3 KB
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": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
// SDD-L07. `strict` does not include this one. Without it, every `array[i]` and
// `record[key]` is typed as if the element always exists, which is how `e.touches[0]`,
// `city.split('+')[0]` and a handful of `match[1]` reads got written with no guard.
"noUncheckedIndexedAccess": true,
// SDD-L11. Node runs the migrated scripts through its own type stripping, which does not
// read this file and requires explicit `.ts` extensions on relative imports. Without this
// flag tsc rejects the very specifiers Node demands. It relaxes no check, and is safe
// because tsc never emits here (`noEmit` below); Next compiles with SWC.
"allowImportingTsExtensions": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"paths": {
"@/components/*": ["src/components/*"],
"@/ssrcomponents/*": ["app/components/*"],
"@/context/*": ["src/context/*"],
"@/styles/*": ["styles/*"],
"@/helpers": ["src/helpers/index.ts"],
"@/helpers/*": ["src/helpers/*"],
"@/layout": ["src/components/Layout/index.tsx"],
"@/hooks/*": ["src/hooks/*"],
"@/constants/*": ["src/constants/*"],
"@/mdx/*": ["src/mdx/*"],
"@/test": ["./jest.setup.js"]
},
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.mdx", ".next/types/**/*.ts", "./next.config.ts"],
"exclude": [
"node_modules",
"storybook-static",
"**/*.stories.tsx",
"**/*.test.tsx",
"**/*.test.ts",
"**/__test__/**/*",
"**/__tests__/**/*",
"./jest.setup.js",
"custom-reporter.js",
"migration/**/*",
"e2e/**/*",
"playwright.config.ts"
]
}