Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
60 lines (54 loc) · 1.98 KB
/
Copy pathtsconfig.json
File metadata and controls
60 lines (54 loc) · 1.98 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
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "./tsconfig.base.json",
"compilerOptions": {
// We add esnext to lib to pull in types for all newer ECMAScript features
"lib": ["esnext", "dom", "dom.iterable", "webworker"],
// Explicitly list which @types/* packages to include as global types
"types": ["gtag.js", "jest", "node", "@rspack/core/module", "trusted-types"],
// We do not actually use tsc to output any JavaScript anywhere
"noEmit": true,
// Don't do anything to JSX. This doesn't really matter since we don't use
// typescript to compile files, but left here for documentation purposes.
"jsx": "preserve",
"jsxImportSource": "@emotion/react",
"strictBindCallApply": false,
"paths": {
"react-router": ["./static/app/utils/reactRouterV6/types.d.ts"],
"react-router/dom": ["./static/app/utils/reactRouterV6/dom.ts"],
"@sentry/scraps/text": ["./static/app/components/core/text/index.tsx"],
"@sentry/scraps": ["./static/packages/scraps/src/index.ts"],
// The app falls back to core components until they move into scraps.
"@sentry/scraps/*": [
"./static/packages/scraps/src/*",
"./static/app/components/core/*"
],
"sentry-images/*": ["./static/images/*"],
"sentry-locale/*": ["./src/sentry/locale/*"],
"sentry-logos/*": ["./src/sentry/static/sentry/images/logos/*"],
"sentry-fonts/*": ["./static/fonts/*"],
"getsentry-images/*": ["./static/images/*"]
}
},
"include": [
"*.config.*s",
"static/app",
"static/gsApp",
"static/gsAdmin",
"static/oxlint",
"tests/js",
"config",
"scripts"
],
"exclude": [
"./node_modules",
"**/*.figma.tsx",
"static/app/serviceWorker/worker",
// Referenced packages are checked separately and consumed as declarations.
"static/packages"
],
"references": [
{"path": "./static/packages/icons"},
{"path": "./static/packages/scraps/tsconfig.test.json"}
]
}