From f3d9184bbe334fa54b4e13a57681068e612b4e9c Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 18 Dec 2024 23:50:58 +0000 Subject: [PATCH] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../tasks/build_canvas_shareable_runtime.ts | 17 ++++++++++++----- .../private/input_control_vis/jest.config.js | 7 +++++-- .../plugins/private/links/jest.config.js | 4 +++- .../plugins/private/maps_ems/jest.config.js | 4 +++- .../private/presentation_panel/jest.config.js | 3 ++- .../private/vis_type_markdown/jest.config.js | 7 +++++-- .../plugins/shared/controls/jest.config.js | 4 +++- .../shared/expression_error/common/index.ts | 1 - .../shared/expression_image/common/index.ts | 1 - .../shared/expression_image/jest.config.js | 3 ++- .../shared/expression_metric/common/index.ts | 1 - .../shared/expression_metric/jest.config.js | 3 ++- .../expression_repeat_image/common/index.ts | 1 - .../expression_repeat_image/jest.config.js | 3 ++- .../expression_reveal_image/common/index.ts | 1 - .../expression_reveal_image/jest.config.js | 3 ++- .../shared/expression_shape/jest.config.js | 3 ++- .../plugins/shared/inspector/jest.config.js | 4 +++- .../plugins/shared/inspector/public/index.ts | 1 - .../shared/presentation_util/jest.config.js | 3 ++- .../presentation_util/storybook/manager.ts | 3 ++- .../private/canvas/storybook/canvas_webpack.ts | 5 ++++- .../plugins/private/file_upload/jest.config.js | 3 ++- .../shared/dashboard_enhanced/common/index.ts | 1 - .../shared/dashboard_enhanced/jest.config.js | 3 ++- .../shared/embeddable_enhanced/jest.config.js | 7 +++++-- .../platform/plugins/shared/maps/jest.config.js | 4 +++- 27 files changed, 66 insertions(+), 34 deletions(-) diff --git a/src/dev/build/tasks/build_canvas_shareable_runtime.ts b/src/dev/build/tasks/build_canvas_shareable_runtime.ts index 07419026c9e95..8f8145c197d7c 100644 --- a/src/dev/build/tasks/build_canvas_shareable_runtime.ts +++ b/src/dev/build/tasks/build_canvas_shareable_runtime.ts @@ -19,11 +19,18 @@ export const BuildCanvasShareableRuntime: Task = { log.info('Skipping Canvas shareable runtime for serverless builds'); return; } - await del(config.resolveFromRepo('x-pack/platform/plugins/private/canvas/shareable_runtime/build')); + await del( + config.resolveFromRepo('x-pack/platform/plugins/private/canvas/shareable_runtime/build') + ); - await exec(log, process.execPath, ['platform/plugins/private/canvas/scripts/shareable_runtime'], { - cwd: config.resolveFromRepo('x-pack'), - level: 'info', - }); + await exec( + log, + process.execPath, + ['platform/plugins/private/canvas/scripts/shareable_runtime'], + { + cwd: config.resolveFromRepo('x-pack'), + level: 'info', + } + ); }, }; diff --git a/src/platform/plugins/private/input_control_vis/jest.config.js b/src/platform/plugins/private/input_control_vis/jest.config.js index 0cb485cb734bb..2bf36692b93ce 100644 --- a/src/platform/plugins/private/input_control_vis/jest.config.js +++ b/src/platform/plugins/private/input_control_vis/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/input_control_vis'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/input_control_vis', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/input_control_vis', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/input_control_vis/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/input_control_vis/public/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/links/jest.config.js b/src/platform/plugins/private/links/jest.config.js index e41a0fbf44078..8c5479c486cd9 100644 --- a/src/platform/plugins/private/links/jest.config.js +++ b/src/platform/plugins/private/links/jest.config.js @@ -13,6 +13,8 @@ module.exports = { roots: ['/src/platform/plugins/private/links'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/links', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/links/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/links/{common,public,server}/**/*.{ts,tsx}', + ], setupFiles: ['/src/platform/plugins/private/links/jest_setup.ts'], }; diff --git a/src/platform/plugins/private/maps_ems/jest.config.js b/src/platform/plugins/private/maps_ems/jest.config.js index 1f5f714565bc8..6949452fb43d0 100644 --- a/src/platform/plugins/private/maps_ems/jest.config.js +++ b/src/platform/plugins/private/maps_ems/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/private/maps_ems'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/maps_ems', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/maps_ems/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/maps_ems/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/presentation_panel/jest.config.js b/src/platform/plugins/private/presentation_panel/jest.config.js index efa62c83a1718..e8ee68f6a0047 100644 --- a/src/platform/plugins/private/presentation_panel/jest.config.js +++ b/src/platform/plugins/private/presentation_panel/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/presentation_panel'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/presentation_panel', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/presentation_panel', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/presentation_panel/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/private/vis_type_markdown/jest.config.js b/src/platform/plugins/private/vis_type_markdown/jest.config.js index d29b5cb75cc0f..0c58e9615255f 100644 --- a/src/platform/plugins/private/vis_type_markdown/jest.config.js +++ b/src/platform/plugins/private/vis_type_markdown/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/vis_type_markdown'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/vis_type_markdown', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/vis_type_markdown', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/vis_type_markdown/{public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/vis_type_markdown/{public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/controls/jest.config.js b/src/platform/plugins/shared/controls/jest.config.js index 771a1fd2984e0..db23370d3b588 100644 --- a/src/platform/plugins/shared/controls/jest.config.js +++ b/src/platform/plugins/shared/controls/jest.config.js @@ -13,6 +13,8 @@ module.exports = { roots: ['/src/platform/plugins/shared/controls'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/controls', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/controls/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/controls/{common,public,server}/**/*.{ts,tsx}', + ], setupFiles: ['/src/platform/plugins/shared/controls/jest_setup.ts'], }; diff --git a/src/platform/plugins/shared/expression_error/common/index.ts b/src/platform/plugins/shared/expression_error/common/index.ts index 690819c543511..3748ba396ee62 100755 --- a/src/platform/plugins/shared/expression_error/common/index.ts +++ b/src/platform/plugins/shared/expression_error/common/index.ts @@ -8,6 +8,5 @@ */ // TODO: https://github.com/elastic/kibana/issues/110893 -/* eslint-disable @kbn/eslint/no_export_all */ export * from './constants'; diff --git a/src/platform/plugins/shared/expression_image/common/index.ts b/src/platform/plugins/shared/expression_image/common/index.ts index 35bd3a07d2133..5b93b57a2f393 100755 --- a/src/platform/plugins/shared/expression_image/common/index.ts +++ b/src/platform/plugins/shared/expression_image/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110893 -/* eslint-disable @kbn/eslint/no_export_all */ export * from './constants'; export * from './types'; diff --git a/src/platform/plugins/shared/expression_image/jest.config.js b/src/platform/plugins/shared/expression_image/jest.config.js index f0f986ba95551..e9f06377998b9 100644 --- a/src/platform/plugins/shared/expression_image/jest.config.js +++ b/src/platform/plugins/shared/expression_image/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/expression_image'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_image', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_image', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/expression_image/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/expression_metric/common/index.ts b/src/platform/plugins/shared/expression_metric/common/index.ts index 2906d4d939a95..f537c7bcdd198 100755 --- a/src/platform/plugins/shared/expression_metric/common/index.ts +++ b/src/platform/plugins/shared/expression_metric/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110893 -/* eslint-disable @kbn/eslint/no_export_all */ export * from './constants'; export * from './types'; diff --git a/src/platform/plugins/shared/expression_metric/jest.config.js b/src/platform/plugins/shared/expression_metric/jest.config.js index 70382c3c0785a..bc85992dfc5ca 100644 --- a/src/platform/plugins/shared/expression_metric/jest.config.js +++ b/src/platform/plugins/shared/expression_metric/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/expression_metric'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_metric', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_metric', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/expression_metric/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/expression_repeat_image/common/index.ts b/src/platform/plugins/shared/expression_repeat_image/common/index.ts index 2906d4d939a95..f537c7bcdd198 100755 --- a/src/platform/plugins/shared/expression_repeat_image/common/index.ts +++ b/src/platform/plugins/shared/expression_repeat_image/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110893 -/* eslint-disable @kbn/eslint/no_export_all */ export * from './constants'; export * from './types'; diff --git a/src/platform/plugins/shared/expression_repeat_image/jest.config.js b/src/platform/plugins/shared/expression_repeat_image/jest.config.js index b63c02abdaa4a..4a42d457e7e5f 100644 --- a/src/platform/plugins/shared/expression_repeat_image/jest.config.js +++ b/src/platform/plugins/shared/expression_repeat_image/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/expression_repeat_image'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_repeat_image', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_repeat_image', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/expression_repeat_image/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/expression_reveal_image/common/index.ts b/src/platform/plugins/shared/expression_reveal_image/common/index.ts index 7aa8e909d8be1..2f52906fa3bba 100755 --- a/src/platform/plugins/shared/expression_reveal_image/common/index.ts +++ b/src/platform/plugins/shared/expression_reveal_image/common/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/110893 -/* eslint-disable @kbn/eslint/no_export_all */ export * from './constants'; export * from './expression_functions'; diff --git a/src/platform/plugins/shared/expression_reveal_image/jest.config.js b/src/platform/plugins/shared/expression_reveal_image/jest.config.js index 2502108b25ce9..d9c95ea81db2f 100644 --- a/src/platform/plugins/shared/expression_reveal_image/jest.config.js +++ b/src/platform/plugins/shared/expression_reveal_image/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/expression_reveal_image'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_reveal_image', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_reveal_image', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/expression_reveal_image/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/expression_shape/jest.config.js b/src/platform/plugins/shared/expression_shape/jest.config.js index fb9279139c783..24066ebb37342 100644 --- a/src/platform/plugins/shared/expression_shape/jest.config.js +++ b/src/platform/plugins/shared/expression_shape/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/expression_shape'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_shape', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/expression_shape', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/expression_shape/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/inspector/jest.config.js b/src/platform/plugins/shared/inspector/jest.config.js index 9bf7bea7b2937..71c91aca5cd77 100644 --- a/src/platform/plugins/shared/inspector/jest.config.js +++ b/src/platform/plugins/shared/inspector/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/inspector'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/inspector', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/inspector/{common,public}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/inspector/{common,public}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/inspector/public/index.ts b/src/platform/plugins/shared/inspector/public/index.ts index 1b42bab18e1d0..3a77dc27f42d7 100644 --- a/src/platform/plugins/shared/inspector/public/index.ts +++ b/src/platform/plugins/shared/inspector/public/index.ts @@ -8,7 +8,6 @@ */ // TODO: https://github.com/elastic/kibana/issues/109900 -/* eslint-disable @kbn/eslint/no_export_all */ import './index.scss'; diff --git a/src/platform/plugins/shared/presentation_util/jest.config.js b/src/platform/plugins/shared/presentation_util/jest.config.js index 9b40440271ad0..c059676c0cd10 100644 --- a/src/platform/plugins/shared/presentation_util/jest.config.js +++ b/src/platform/plugins/shared/presentation_util/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/presentation_util'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/presentation_util', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/presentation_util', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/presentation_util/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/presentation_util/storybook/manager.ts b/src/platform/plugins/shared/presentation_util/storybook/manager.ts index dc31e523e41d3..e879b1d1a234e 100644 --- a/src/platform/plugins/shared/presentation_util/storybook/manager.ts +++ b/src/platform/plugins/shared/presentation_util/storybook/manager.ts @@ -15,7 +15,8 @@ addons.setConfig({ theme: create({ base: 'light', brandTitle: 'Kibana Presentation Utility Storybook', - brandUrl: 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/presentation_util', + brandUrl: + 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/presentation_util', }), showPanel: true.valueOf, selectedPanel: PANEL_ID, diff --git a/x-pack/platform/plugins/private/canvas/storybook/canvas_webpack.ts b/x-pack/platform/plugins/private/canvas/storybook/canvas_webpack.ts index 52695f5429381..8fa9109fa922f 100644 --- a/x-pack/platform/plugins/private/canvas/storybook/canvas_webpack.ts +++ b/x-pack/platform/plugins/private/canvas/storybook/canvas_webpack.ts @@ -46,7 +46,10 @@ export const canvasWebpack = { // Exclude large-dependency, troublesome or irrelevant modules. { test: [ - resolve(KIBANA_ROOT, 'x-pack/platform/plugins/private/canvas/public/components/embeddable_flyout'), + resolve( + KIBANA_ROOT, + 'x-pack/platform/plugins/private/canvas/public/components/embeddable_flyout' + ), resolve(KIBANA_ROOT, 'x-pack/plugins/reporting/public'), ], use: 'null-loader', diff --git a/x-pack/platform/plugins/private/file_upload/jest.config.js b/x-pack/platform/plugins/private/file_upload/jest.config.js index 2ea92473dbe07..cf3d8cb9490b6 100644 --- a/x-pack/platform/plugins/private/file_upload/jest.config.js +++ b/x-pack/platform/plugins/private/file_upload/jest.config.js @@ -9,7 +9,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/private/file_upload'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/file_upload', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/file_upload', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/x-pack/platform/plugins/private/file_upload/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/x-pack/platform/plugins/shared/dashboard_enhanced/common/index.ts b/x-pack/platform/plugins/shared/dashboard_enhanced/common/index.ts index 0033253d720a7..35d241f19a443 100644 --- a/x-pack/platform/plugins/shared/dashboard_enhanced/common/index.ts +++ b/x-pack/platform/plugins/shared/dashboard_enhanced/common/index.ts @@ -6,6 +6,5 @@ */ // TODO: https://github.com/elastic/kibana/issues/110897 -/* eslint-disable @kbn/eslint/no_export_all */ export * from './drilldowns'; diff --git a/x-pack/platform/plugins/shared/dashboard_enhanced/jest.config.js b/x-pack/platform/plugins/shared/dashboard_enhanced/jest.config.js index 457d137ec4999..00627bd90221e 100644 --- a/x-pack/platform/plugins/shared/dashboard_enhanced/jest.config.js +++ b/x-pack/platform/plugins/shared/dashboard_enhanced/jest.config.js @@ -9,7 +9,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/shared/dashboard_enhanced'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/dashboard_enhanced', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/dashboard_enhanced', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/x-pack/platform/plugins/shared/dashboard_enhanced/{common,public,server}/**/*.{ts,tsx}', diff --git a/x-pack/platform/plugins/shared/embeddable_enhanced/jest.config.js b/x-pack/platform/plugins/shared/embeddable_enhanced/jest.config.js index bcf7ff104076e..b36f4f6f57ccd 100644 --- a/x-pack/platform/plugins/shared/embeddable_enhanced/jest.config.js +++ b/x-pack/platform/plugins/shared/embeddable_enhanced/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/shared/embeddable_enhanced'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/embeddable_enhanced', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/embeddable_enhanced', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/embeddable_enhanced/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/embeddable_enhanced/public/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/shared/maps/jest.config.js b/x-pack/platform/plugins/shared/maps/jest.config.js index cba35de1cd53b..15089c91daff2 100644 --- a/x-pack/platform/plugins/shared/maps/jest.config.js +++ b/x-pack/platform/plugins/shared/maps/jest.config.js @@ -11,5 +11,7 @@ module.exports = { roots: ['/x-pack/platform/plugins/shared/maps'], coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/maps', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/maps/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/maps/{common,public,server}/**/*.{js,ts,tsx}', + ], };