-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
39 lines (36 loc) · 1.63 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
{
/* inspired by https://github.com/marmelab/react-admin/blob/HEAD@%7B2019-10-20T17:02:44Z%7D/tsconfig.json */
"compilerOptions": {
/* Basic Options */
"target": "ESNEXT", // ESNext because ts-loader -> babel-loader. Babel will take care of the rest
"module": "ESNext",
"lib": ["DOM"],
"declaration": true /* Generates corresponding '.d.ts' file. */,
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
"sourceMap": true /* Generates corresponding '.map' file. */,
"removeComments": false /* Do not emit comments to output. */,
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
/* Strict Type-Checking Options */
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
/* Module Resolution Options */
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
// important to make ts-setup work
"rootDir": ".",
"baseUrl": ".",
"paths": {
"react-component-catalog": ["packages/react-component-catalog/src"],
"react-component-catalog/*": ["packages/react-component-catalog/src/*"],
"*": ["node_modules", "packages"]
}
},
"exclude": [
"node_modules",
"packages/**/node_modules",
"packages/**/dist",
"packages/**/es",
"packages/**/esm",
"packages/**/lib",
"tmp"
]
}