2018-02-21 11:16:04 +01:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
2018-05-21 19:42:59 +02:00
|
|
|
"baseUrl": ".",
|
2018-06-05 21:23:32 +02:00
|
|
|
"paths": {
|
|
|
|
"ui/*": ["src/ui/public/*"]
|
|
|
|
},
|
2018-05-23 22:15:36 +02:00
|
|
|
// Support .tsx files and transform JSX into calls to React.createElement
|
|
|
|
"jsx": "react",
|
|
|
|
|
2018-02-21 11:16:04 +01:00
|
|
|
// Enables all strict type checking options.
|
|
|
|
"strict": true,
|
|
|
|
|
2018-05-21 19:42:59 +02:00
|
|
|
// enables "core language features"
|
|
|
|
"lib": [
|
|
|
|
// ESNext auto includes previous versions all the way back to es5
|
|
|
|
"esnext",
|
|
|
|
// includes support for browser APIs
|
|
|
|
"dom"
|
|
|
|
],
|
2018-02-21 11:16:04 +01:00
|
|
|
|
2018-05-21 19:42:59 +02:00
|
|
|
// Node 8 should support everything output by esnext, we override this
|
|
|
|
// in webpack with loader-level compiler options
|
2018-02-21 11:16:04 +01:00
|
|
|
"target": "esnext",
|
|
|
|
|
2018-06-28 05:50:06 +02:00
|
|
|
// Use commonjs for node, overridden in webpack to keep import statements
|
2018-05-21 19:42:59 +02:00
|
|
|
// to maintain support for things like `await import()`
|
|
|
|
"module": "commonjs",
|
2018-02-21 11:16:04 +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 11:23:09 +02:00
|
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
|
|
|
|
// Disable the breaking keyof behaviour introduced in TS 2.9.2 until EUI is updated to support that too
|
|
|
|
"keyofStringsOnly": true
|
2018-02-21 11:16:04 +01:00
|
|
|
},
|
2018-05-21 19:42:59 +02:00
|
|
|
"include": [
|
|
|
|
"src/**/*"
|
2018-02-21 11:16:04 +01:00
|
|
|
]
|
|
|
|
}
|