-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtsconfig.json
113 lines (107 loc) · 4.25 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
* Copyright (C) 2019-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2019-present Sven Greb <[email protected]>
*
* Project: Arctic
* Repository: https://github.com/arcticicestudio/arctic
* License: MIT
*/
{
"compilerOptions": {
/*
* Disallow features that require cross-file information to emit and transpile each file as a separate module.
* This option is mainly used to keep proper compatibility with Babel.
* See https://devblogs.microsoft.com/typescript/typescript-and-babel-7 for more details.
*/
"isolatedModules": true,
"jsx": "react",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
/* Babel is used as transpiler so don't emit/write any files! */
"noEmit": true,
/*
* This option is actually only required when using the TypeScript compiler to transpile files,
* but it is added for better compatibility and prevent unexpected behavior through default values.
*/
"target": "esnext",
/*+----------------------+
+ Strict Type-Checking +
+----------------------+*/
/* Enable all available strict type-checking options like `noImplicitAny`. */
"strict": true,
/*+-------------------+
+ Module Resolution +
+-------------------+*/
/*
* The `allowSyntheticDefaultImports` and `esModuleInterop` options are mainly used to keep proper compatibility
* with Babel!
* See https://devblogs.microsoft.com/typescript/typescript-and-babel-7 for more details.
*/
/* Allow default imports from modules with no default export. */
"allowSyntheticDefaultImports": true,
/*
* Import non-ES modules as default imports.
* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all
* imports. It implies `allowSyntheticDefaultImports`.
*/
"esModuleInterop": true,
"moduleResolution": "node",
/* Allow import of JSON files as modules like in Node. */
"resolveJsonModule": true,
/*+-------------------+
+ Additional Checks +
+-------------------+*/
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
/*+---------------+
+ Alias Imports +
+---------------+*/
"baseUrl": ".",
"paths": {
"~assets/*": ["www/src/assets/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/assets/*"],
"~atoms/*": [
"www/src/components/atoms/*",
"packages/@arcticicestudio/gatsby-theme-arctic/src/components/atoms/*"
],
"~config/*": ["www/src/config/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/config/*"],
"~containers/*": [
"www/src/components/containers/*",
"packages/@arcticicestudio/gatsby-theme-arctic/src/components/containers/*"
],
"~data/*": ["www/src/data/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/data/*"],
"~hooks/*": ["www/src/hooks/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/hooks/*"],
"~layouts/*": [
"www/src/components,/layouts/*",
"packages/@arcticicestudio/gatsby-theme-arctic/src/components,/layouts/*"
],
"~molecules/*": [
"www/src/components/molecules/*",
"packages/@arcticicestudio/gatsby-theme-arctic/src/components/molecules/*"
],
"~organisms/*": [
"www/src/components/organisms/*",
"packages/@arcticicestudio/gatsby-theme-arctic/src/components/organisms/*"
],
"~pages/*": ["www/src/pages/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/pages/*"],
"~stores/*": ["www/src/stores/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/stores/*"],
"~styles/*": ["www/src/styles/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/styles/*"],
"~templates/*": [
"www/src/components/templates/*",
"packages/@arcticicestudio/gatsby-theme-arctic/src/components/templates/*"
],
"~utils/*": ["www/src/utils/*", "packages/@arcticicestudio/gatsby-theme-arctic/src/utils/*"]
}
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": [
"**/.cache/*",
"**/.gatsby/*",
"**/.github/*",
"**/build/*",
"**/node_modules/*",
"**/public/*",
"**/static/*"
]
}