-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
64 lines (64 loc) · 2.84 KB
/
Copy pathtsconfig.base.json
File metadata and controls
64 lines (64 loc) · 2.84 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
{
"compilerOptions": {
"paths": {
// Allows for importing from `opensearch-dashboards` package for the exported types.
"opensearch-dashboards": ["./opensearch_dashboards"],
"opensearch-dashboards/public": ["./src/core/public"],
"opensearch-dashboards/public/*": ["./src/core/public/*"],
"opensearch-dashboards/server": ["./src/core/server"],
"opensearch-dashboards/server/*": ["./src/core/server/*"],
"plugins/*": ["./src/legacy/core_plugins/*/public/"],
"test_utils/*": ["./src/test_utils/public/*"],
"fixtures/*": ["./src/fixtures/*"],
"src/*": ["./src/*"],
"@opensearch-project/opensearch": ["./node_modules/@opensearch-project/opensearch/api/new"],
"@opensearch-project/opensearch/lib/*": ["./node_modules/@opensearch-project/opensearch/lib/*"],
},
// Support .tsx files and transform JSX using automatic runtime
"jsx": "react-jsx",
// Enables all strict type checking options.
"strict": true,
// save information about the project graph on disk
"incremental": true,
// enables "core language features"
"lib": [
"esnext",
// includes support for browser APIs
"dom"
],
// Node 8 should support everything output by esnext, we override this
// in webpack with loader-level compiler options
"target": "esnext",
// Use esnext module format for type checking; Babel/webpack handle the actual
// module transformation to CommonJS at build time
"module": "esnext",
// Allows default imports from modules with no default export. This does not affect code emit, just type checking.
// We have to enable this option explicitly since `esModuleInterop` doesn't enable it automatically when ES2015 or
// ESNext module format is used.
"allowSyntheticDefaultImports": true,
// Emits __importStar and __importDefault helpers for runtime babel ecosystem compatibility.
"esModuleInterop": true,
// Resolve modules using the bundler strategy, matching how webpack/Babel
// resolve imports at build time
"moduleResolution": "bundler",
// "resolveJsonModule" allows for importing, extracting types from and generating .json files.
"resolveJsonModule": true,
// Disallow inconsistently-cased references to the same file.
"forceConsistentCasingInFileNames": true,
// Forbid unused local variables as the rule was deprecated by ts-lint
"noUnusedLocals": true,
// import tslib helpers rather than inlining helpers for iteration or spreading, for instance
"importHelpers": true,
"useUnknownInCatchVariables": false,
// Skip type checking of declaration files to avoid conflicts between different @types/react versions
"skipLibCheck": true,
// adding global typings
"types": [
"node",
"jest",
"react",
"flot",
"@testing-library/jest-dom",
]
}
}