-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtsconfig.json
42 lines (41 loc) · 1.32 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
{
"extends": "@tsconfig/strictest/tsconfig.json",
"compilerOptions": {
"target": "ES2020",
"lib": ["DOM", "DOM.Iterable", "ES2021"],
"allowJs": true,
"checkJs": false,
"exactOptionalPropertyTypes": false,
"importsNotUsedAsValues": "remove",
"noEmit": true,
"esModuleInterop": true,
"module": "ES2020",
"moduleResolution": "Node",
"resolveJsonModule": true,
"jsx": "react-jsx",
"jsxImportSource": "react",
"paths": {
// This is a hack because eslint is not picking up the correct tsconfig.json
// inside the apps/web module. This is a temporary workaround
// In practice no module outside apps/web should use the `@/` alias ever
// In addition to opening the door to invalid imports this also prevents us
// from two separate next.js apps in the same monorepo which might be relevant for future
"@/*": ["./apps/web/*"],
"@openint/connect": ["./kits/connect/src"],
"@openint/connect/*": ["./kits/connect/src/*"],
"@openint/shadcn": ["./packages/shadcn"],
"@openint/shadcn/ui": ["./packages/shadcn/ui"]
}
},
"include": [
"env.d.ts",
"**/*.ts",
"**/*.tsx",
"**/*.mts",
"**/*.mtsx",
"**/*.cts",
"**/*.ctsx"
],
"exclude": ["node_modules"],
"plugins": [{"name": "typescript-snapshots-plugin"}]
}