mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
chore(tsconfig): uncomment option moduleDetection
(#191834)
This commit is contained in:
parent
8bd90857ed
commit
f8ad0f1ec9
15 changed files with 1 additions and 57 deletions
|
@ -7,9 +7,6 @@
|
|||
* License v3.0 only", or the "Server Side Public License, v 1".
|
||||
*/
|
||||
|
||||
// TODO: we should be able to remove this ts-ignore while using isolatedModules
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
// @ts-ignore
|
||||
module.exports = function ({
|
||||
entries,
|
||||
}: {
|
||||
|
|
|
@ -9,10 +9,6 @@
|
|||
|
||||
// TODO: implement this on the server
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
export {};
|
||||
|
||||
// import { StartServicesAccessor } from '@kbn/core/server';
|
||||
// import { EventAnnotationStartDependencies } from '../plugin';
|
||||
|
||||
|
|
|
@ -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 TS@4.8
|
||||
//
|
||||
// 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
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// 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.
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// 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');
|
||||
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// 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');
|
||||
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// 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
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
export {};
|
||||
|
||||
jest.mock('../../..', () => ({
|
||||
EnginesLogic: { actions: { deleteEngine: jest.fn() } },
|
||||
}));
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
export {};
|
||||
|
||||
jest.mock('../../hooks', () => {
|
||||
return {
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
export {};
|
||||
|
||||
(window as any).Worker = class Worker {
|
||||
onmessage() {}
|
||||
postMessage() {}
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// 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.
|
||||
|
|
|
@ -21,10 +21,6 @@
|
|||
/**
|
||||
* @type {Cypress.PluginConfig}
|
||||
*/
|
||||
// TODO: we should be able to remove this ts-ignore while using isolatedModules
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
module.exports = (on: any, config: any) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
export {};
|
||||
|
||||
jest.mock('lodash', () => ({
|
||||
...jest.requireActual('lodash'),
|
||||
debounce: (fn: () => unknown) => fn,
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// this is a skip for the errors created when typechecking with isolatedModules
|
||||
export {};
|
||||
export {
|
||||
APP_UI_ID,
|
||||
APP_ID,
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
// TODO(jbudz): should be removed when upgrading to TS@4.8
|
||||
// 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' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue