2018-02-21 10:09:30 +01:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
2018-05-18 19:54:57 +02:00
|
|
|
"baseUrl": ".",
|
2018-06-05 19:58:54 +02:00
|
|
|
"paths": {
|
2018-12-17 19:52:21 +01:00
|
|
|
// Allows for importing from `kibana` package for the exported types.
|
|
|
|
"kibana": ["./kibana"],
|
2019-04-03 12:26:00 +02:00
|
|
|
"kibana/public": ["src/core/public"],
|
|
|
|
"kibana/server": ["src/core/server"],
|
2019-04-30 14:57:12 +02:00
|
|
|
"plugins/*": ["src/legacy/core_plugins/*/public/"],
|
2018-11-20 08:19:20 +01:00
|
|
|
"test_utils/*": [
|
|
|
|
"src/test_utils/public/*"
|
2020-01-17 19:00:35 +01:00
|
|
|
],
|
|
|
|
"fixtures/*": ["src/fixtures/*"]
|
2018-06-05 19:58:54 +02:00
|
|
|
},
|
2018-05-23 21:05:08 +02:00
|
|
|
// Support .tsx files and transform JSX into calls to React.createElement
|
|
|
|
"jsx": "react",
|
2018-02-21 10:09:30 +01:00
|
|
|
// Enables all strict type checking options.
|
|
|
|
"strict": true,
|
2018-05-18 19:54:57 +02:00
|
|
|
// enables "core language features"
|
|
|
|
"lib": [
|
2019-08-23 03:40:57 +02:00
|
|
|
"esnext",
|
2018-05-18 19:54:57 +02:00
|
|
|
// includes support for browser APIs
|
|
|
|
"dom"
|
|
|
|
],
|
|
|
|
// Node 8 should support everything output by esnext, we override this
|
|
|
|
// in webpack with loader-level compiler options
|
2018-02-21 10:09:30 +01:00
|
|
|
"target": "esnext",
|
2018-06-27 05:17:41 +02:00
|
|
|
// Use commonjs for node, overridden in webpack to keep import statements
|
2018-05-18 19:54:57 +02:00
|
|
|
// to maintain support for things like `await import()`
|
|
|
|
"module": "commonjs",
|
2018-02-21 10:09:30 +01:00
|
|
|
// 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 in the same way as Node.js. Aka make `require` works the
|
|
|
|
// same in TypeScript as it does in Node.js.
|
|
|
|
"moduleResolution": "node",
|
|
|
|
// Disallow inconsistently-cased references to the same file.
|
2018-07-17 00:31:05 +02:00
|
|
|
"forceConsistentCasingInFileNames": true,
|
2018-09-11 07:38:41 +02:00
|
|
|
// Forbid unused local variables as the rule was deprecated by ts-lint
|
|
|
|
"noUnusedLocals": true,
|
2018-09-13 23:18:13 +02:00
|
|
|
// Provide full support for iterables in for..of, spread and destructuring when targeting ES5 or ES3.
|
|
|
|
"downlevelIteration": true,
|
|
|
|
// import tslib helpers rather than inlining helpers for iteration or spreading, for instance
|
2019-02-22 02:38:54 +01:00
|
|
|
"importHelpers": true,
|
2019-02-28 21:06:00 +01:00
|
|
|
// adding global typings
|
|
|
|
"types": [
|
|
|
|
"node",
|
|
|
|
"jest",
|
2020-01-17 13:30:26 +01:00
|
|
|
"react",
|
2020-06-20 21:05:09 +02:00
|
|
|
"flot",
|
|
|
|
"jest-styled-components",
|
|
|
|
"@testing-library/jest-dom"
|
2019-02-28 21:06:00 +01:00
|
|
|
]
|
2018-02-21 10:09:30 +01:00
|
|
|
},
|
2018-05-18 19:54:57 +02:00
|
|
|
"include": [
|
2018-12-17 19:52:21 +01:00
|
|
|
"kibana.d.ts",
|
2018-11-23 16:36:12 +01:00
|
|
|
"src/**/*",
|
2018-12-18 23:44:39 +01:00
|
|
|
"typings/**/*",
|
|
|
|
"test_utils/**/*"
|
2018-07-18 07:07:13 +02:00
|
|
|
],
|
|
|
|
"exclude": [
|
2019-02-28 21:06:00 +01:00
|
|
|
"src/**/__fixtures__/**/*"
|
2018-08-15 00:27:07 +02:00
|
|
|
// In the build we actually exclude **/public/**/* from this config so that
|
|
|
|
// we can run the TSC on both this and the .browser version of this config
|
|
|
|
// file, but if we did it during development IDEs would not be able to find
|
|
|
|
// the tsconfig.json file for public files correctly.
|
|
|
|
// "src/**/public/**/*"
|
2018-02-21 10:09:30 +01:00
|
|
|
]
|
2018-11-20 08:19:20 +01:00
|
|
|
}
|