-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathtsconfig.json
More file actions
85 lines (74 loc) · 2.57 KB
/
tsconfig.json
File metadata and controls
85 lines (74 loc) · 2.57 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"$schema": "http://json.schemastore.org/tsconfig",
"compilerOptions": {
// NOTE: We DO NOT use typescript to compile the application. SWC is
// responsible for handing transformation of tsx files into plain JavaScript
"module": "preserve",
"target": "ES2022",
"moduleResolution": "bundler",
// We add esnext to lib to pull in types for all newer ECMAScript features
"lib": ["esnext", "dom", "dom.iterable"],
// Skip type checking of all declaration files
"skipLibCheck": true,
// Explicitly list which @types/* packages to include as global types
"types": ["gtag.js", "jest", "node", "webpack-env"],
// 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",
// Type checking specific options
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"strictBindCallApply": false,
"useUnknownInCatchVariables": true,
"pretty": false,
"checkJs": true,
"experimentalDecorators": false,
"resolveJsonModule": true,
"verbatimModuleSyntax": true,
"paths": {
"@sentry/scraps/*": ["./static/app/components/core/*"],
"sentry/*": ["./static/app/*"],
"sentry-fixture/*": ["./tests/js/fixtures/*"],
"sentry-test/*": ["./tests/js/sentry-test/*"],
"getsentry-test/*": ["./tests/js/getsentry-test/*"],
"sentry-images/*": ["./static/images/*"],
"sentry-locale/*": ["./src/sentry/locale/*"],
"sentry-logos/*": ["./src/sentry/static/sentry/images/logos/*"],
"sentry-fonts/*": ["./static/fonts/*"],
"getsentry/*": ["./static/gsApp/*"],
"getsentry-images/*": ["./static/images/*"],
"admin/*": ["./static/gsAdmin/*"]
},
"plugins": [
// The styled plugin provides language server autocompletion for styled
// component template strings
{
"name": "@styled/typescript-styled-plugin",
"lint": {
"validProperties": ["container-type"],
"unknownAtRules": "ignore"
}
}
]
},
"include": [
"*.config.*s",
"static/app",
"static/gsApp",
"static/gsAdmin",
"static/eslint",
"tests/js",
"config",
"scripts"
],
"exclude": ["./node_modules"]
}