-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] chore(tsconfig): uncomment option `moduleDetection` (#…
…191834) (#193481) # Backport This will backport the following commits from `main` to `8.x`: - [chore(tsconfig): uncomment option `moduleDetection` (#191834)](#191834) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-19T20:04:14Z","message":"chore(tsconfig): uncomment option `moduleDetection` (#191834)","sha":"f8ad0f1ec920600de6ede16e54c2e2aafbe5ce57","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","release_note:skip","Feature:Drilldowns","Team:Fleet","v9.0.0","Team:Search","backport:prev-minor"],"title":"chore(tsconfig): uncomment option `moduleDetection`","number":191834,"url":"https://github.com/elastic/kibana/pull/191834","mergeCommit":{"message":"chore(tsconfig): uncomment option `moduleDetection` (#191834)","sha":"f8ad0f1ec920600de6ede16e54c2e2aafbe5ce57"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191834","number":191834,"mergeCommit":{"message":"chore(tsconfig): uncomment option `moduleDetection` (#191834)","sha":"f8ad0f1ec920600de6ede16e54c2e2aafbe5ce57"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <[email protected]>
- Loading branch information
1 parent
71ad243
commit 78e9b76
Showing
15 changed files
with
1 addition
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,6 @@ | |
|
||
// TODO: implement this on the server | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
// import { StartServicesAccessor } from '@kbn/core/server'; | ||
// import { EventAnnotationStartDependencies } from '../plugin'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1996,11 +1996,8 @@ | |
"useUnknownInCatchVariables": false, | ||
// enabled to point out not supported features when emitting in an isolated module environment | ||
"isolatedModules": true, | ||
// TODO(jbudz): should be uncommented when upgrading to [email protected] | ||
// | ||
// ensures every non-declaration file is treated as a module | ||
// "moduleDetection": "force", | ||
// | ||
"moduleDetection": "force", | ||
// disabled for better IDE support, enabled when running the type_check script | ||
"composite": false, | ||
// enabled for improved performance | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
// Careful of exporting anything from this file as any file(s) you export here will cause your functions to be exposed as public. | ||
// If you're using functions/types/etc... internally or within integration tests it's best to import directly from their paths | ||
// than expose the functions/types/etc... here. You should _only_ expose functions/types/etc... that need to be shared with other plugins here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
jest.mock('../../../app/services/breadcrumbs', () => { | ||
const original = jest.requireActual('../../../app/services/breadcrumbs'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
jest.mock('../../../app/services/track_ui_metric', () => { | ||
const original = jest.requireActual('../../../app/services/track_ui_metric'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
// Need to wait for https://github.com/elastic/eui/pull/3173/ | ||
// to unit test this component | ||
// basic interaction is covered in end-to-end tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
jest.mock('../../..', () => ({ | ||
EnginesLogic: { actions: { deleteEngine: jest.fn() } }, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ | |
*/ | ||
|
||
import React from 'react'; | ||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
jest.mock('../../hooks', () => { | ||
return { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
(window as any).Worker = class Worker { | ||
onmessage() {} | ||
postMessage() {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
// Careful of exporting anything from this file as any file(s) you export here will cause your page bundle size to increase. | ||
// If you're using functions/types/etc... internally it's best to import directly from their paths than expose the functions/types/etc... here. | ||
// You should _only_ expose functions/types/etc... that need to be shared with other plugins here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
jest.mock('lodash', () => ({ | ||
...jest.requireActual('lodash'), | ||
debounce: (fn: () => unknown) => fn, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
export { | ||
APP_UI_ID, | ||
APP_ID, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
* 2.0. | ||
*/ | ||
|
||
// TODO(jbudz): should be removed when upgrading to [email protected] | ||
// this is a skip for the errors created when typechecking with isolatedModules | ||
export {}; | ||
|
||
jest.mock('@kbn/i18n-react', () => { | ||
const { i18n } = jest.requireActual('@kbn/i18n'); | ||
i18n.init({ locale: 'en' }); | ||
|