Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Dec 19, 2024
1 parent 36bf2db commit 8a21bfe
Show file tree
Hide file tree
Showing 30 changed files with 76 additions and 37 deletions.
5 changes: 4 additions & 1 deletion packages/kbn-docs-utils/src/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ it('getFileName', () => {

it('test getPluginForPath', () => {
const plugins = findPlugins();
const path = Path.resolve(REPO_ROOT, 'src/platform/plugins/shared/embeddable/public/service/file.ts');
const path = Path.resolve(
REPO_ROOT,
'src/platform/plugins/shared/embeddable/public/service/file.ts'
);
expect(getPluginForPath(path, plugins)).toBeDefined();
});

Expand Down
17 changes: 12 additions & 5 deletions src/dev/build/tasks/build_canvas_shareable_runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
);
},
};
7 changes: 5 additions & 2 deletions src/platform/plugins/private/input_control_vis/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/private/input_control_vis'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/input_control_vis',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/input_control_vis',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/input_control_vis/public/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/input_control_vis/public/**/*.{ts,tsx}',
],
};
4 changes: 3 additions & 1 deletion src/platform/plugins/private/links/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/private/links'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/links',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/links/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/links/{common,public,server}/**/*.{ts,tsx}',
],
setupFiles: ['<rootDir>/src/platform/plugins/private/links/jest_setup.ts'],
};
4 changes: 3 additions & 1 deletion src/platform/plugins/private/maps_ems/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/private/maps_ems'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/maps_ems',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/maps_ems/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/maps_ems/{common,public,server}/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/private/presentation_panel'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/presentation_panel',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/presentation_panel',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/presentation_panel/{common,public,server}/**/*.{ts,tsx}',
Expand Down
7 changes: 5 additions & 2 deletions src/platform/plugins/private/vis_type_markdown/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/private/vis_type_markdown'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_type_markdown',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_type_markdown',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/vis_type_markdown/{public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_type_markdown/{public,server}/**/*.{ts,tsx}',
],
};
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/controls/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/shared/controls'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/controls',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/controls/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/controls/{common,public,server}/**/*.{ts,tsx}',
],
setupFiles: ['<rootDir>/src/platform/plugins/shared/controls/jest_setup.ts'],
};
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/dashboard/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/shared/dashboard'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/dashboard',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/dashboard/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/dashboard/{common,public,server}/**/*.{ts,tsx}',
],
setupFiles: ['<rootDir>/src/platform/plugins/shared/dashboard/jest_setup.ts'],
};
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/embeddable/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ module.exports = {
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/embeddable',
coverageReporters: ['text', 'html'],
setupFiles: ['<rootDir>/src/platform/plugins/shared/embeddable/jest_setup.ts'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/embeddable/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/embeddable/{common,public,server}/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
*/

// TODO: https://github.com/elastic/kibana/issues/110893
/* eslint-disable @kbn/eslint/no_export_all */

export * from './constants';
Original file line number Diff line number Diff line change
Expand Up @@ -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';
3 changes: 2 additions & 1 deletion src/platform/plugins/shared/expression_image/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/expression_image'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_image',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_image',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/expression_image/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 2 additions & 1 deletion src/platform/plugins/shared/expression_metric/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/expression_metric'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_metric',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_metric',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/expression_metric/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/expression_repeat_image'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_repeat_image',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_repeat_image',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/expression_repeat_image/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/expression_reveal_image'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_reveal_image',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_reveal_image',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/expression_reveal_image/{common,public,server}/**/*.{ts,tsx}',
Expand Down
3 changes: 2 additions & 1 deletion src/platform/plugins/shared/expression_shape/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/expression_shape'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_shape',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expression_shape',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/expression_shape/{common,public,server}/**/*.{ts,tsx}',
Expand Down
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/inspector/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ module.exports = {
roots: ['<rootDir>/src/platform/plugins/shared/inspector'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/inspector',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/inspector/{common,public}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/inspector/{common,public}/**/*.{ts,tsx}',
],
};
1 change: 0 additions & 1 deletion src/platform/plugins/shared/inspector/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

// TODO: https://github.com/elastic/kibana/issues/109900
/* eslint-disable @kbn/eslint/no_export_all */

import './index.scss';

Expand Down
3 changes: 2 additions & 1 deletion src/platform/plugins/shared/presentation_util/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/presentation_util'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/presentation_util',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/presentation_util',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/presentation_util/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion x-pack/platform/plugins/private/file_upload/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/plugins/private/file_upload'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/private/file_upload',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/private/file_upload',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/private/file_upload/{common,public,server}/**/*.{js,ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
*/

// TODO: https://github.com/elastic/kibana/issues/110897
/* eslint-disable @kbn/eslint/no_export_all */

export * from './drilldowns';
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/plugins/shared/dashboard_enhanced'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/dashboard_enhanced',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/dashboard_enhanced',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/shared/dashboard_enhanced/{common,public,server}/**/*.{ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/plugins/shared/embeddable_enhanced'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/embeddable_enhanced',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/embeddable_enhanced',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/embeddable_enhanced/public/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/shared/embeddable_enhanced/public/**/*.{ts,tsx}',
],
};
4 changes: 3 additions & 1 deletion x-pack/platform/plugins/shared/maps/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ module.exports = {
roots: ['<rootDir>/x-pack/platform/plugins/shared/maps'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/maps',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/maps/{common,public,server}/**/*.{js,ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/shared/maps/{common,public,server}/**/*.{js,ts,tsx}',
],
};

0 comments on commit 8a21bfe

Please sign in to comment.