kibana/tsconfig.base.json
Tiago Costa 6f5ea2c428
[7.17] [TypeScript] Upgrade to 4.5.3 (#120812) (#158883)
# Backport

This will backport the following commits from `main` to `7.17`:
- [[TypeScript] Upgrade to 4.5.3
(#120812)](https://github.com/elastic/kibana/pull/120812)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Brian
Seeders","email":"brian.seeders@elastic.co"},"sourceCommit":{"committedDate":"2021-12-13T17:54:17Z","message":"[TypeScript]
Upgrade to 4.5.3
(#120812)","sha":"16af3e612d27bd3608787a3daab121d648787f67","branchLabelMapping":{"^v8.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","Feature:Embedding","Team:APM","release_note:skip","Feature:CI","backport:skip","Team:Fleet","v8.1.0"],"number":120812,"url":"https://github.com/elastic/kibana/pull/120812","mergeCommit":{"message":"[TypeScript]
Upgrade to 4.5.3
(#120812)","sha":"16af3e612d27bd3608787a3daab121d648787f67"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.1.0","labelRegex":"^v8.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/120812","number":120812,"mergeCommit":{"message":"[TypeScript]
Upgrade to 4.5.3
(#120812)","sha":"16af3e612d27bd3608787a3daab121d648787f67"}}]}]
BACKPORT-->

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2023-06-02 00:39:23 +01:00

75 lines
3.1 KiB
JSON

{
"compilerOptions": {
"baseUrl": ".",
"paths": {
// Setup @kbn paths for Bazel compilations
"@kbn/*": [
"node_modules/@kbn/*",
"bazel-out/darwin-fastbuild/bin/packages/kbn-*",
"bazel-out/k8-fastbuild/bin/packages/kbn-*",
"bazel-out/x64_windows-fastbuild/bin/packages/kbn-*"
],
// Allows for importing from `kibana` package for the exported types.
"kibana": ["./kibana"],
"kibana/public": ["src/core/public"],
"kibana/server": ["src/core/server"],
"@emotion/core": ["typings/@emotion"],
"resize-observer-polyfill": ["typings/resize-observer-polyfill"]
},
// Support .tsx files and transform JSX into calls to React.createElement
"jsx": "react",
// Enables all strict type checking options.
"strict": true,
// for now, don't use unknown in catch
"useUnknownInCatchVariables": false,
// All TS projects should be composite and only include the files they select, and ref the files outside of the project
"composite": true,
// save information about the project graph on disk
"incremental": true,
// Do not check d.ts files by default
"skipLibCheck": true,
// enables "core language features"
"lib": [
"esnext",
// includes support for browser APIs
"dom",
"DOM.Iterable"
],
// Node 8 should support everything output by esnext, we override this
// in webpack with loader-level compiler options
"target": "esnext",
// Use commonjs for node, overridden in webpack to keep import statements
// to maintain support for things like `await import()`
"module": "commonjs",
// 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",
// "resolveJsonModule" allows for importing, extracting types from and generating .json files.
"resolveJsonModule": true,
// Do not resolve symlinks to their real path; treat a symlinked file like a real one.
"preserveSymlinks": true,
// Disallow inconsistently-cased references to the same file.
"forceConsistentCasingInFileNames": false,
// Forbid unused local variables as the rule was deprecated by ts-lint
"noUnusedLocals": true,
// 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
"importHelpers": true,
// adding global typings
"types": [
"node",
"jest",
"flot",
"jest-styled-components",
"@testing-library/jest-dom",
"@emotion/react/types/css-prop"
]
}
}