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 5, 2024
1 parent eb9db7e commit 8b482c7
Show file tree
Hide file tree
Showing 32 changed files with 96 additions and 44 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,9 @@ module.exports = {
* venn.js fork requires special license headers
*/
{
files: ['x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/**/*.{js,mjs,ts,tsx}'],
files: [
'x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/**/*.{js,mjs,ts,tsx}',
],
rules: {
'@kbn/eslint/require-license-header': [
'error',
Expand Down
9 changes: 6 additions & 3 deletions src/dev/storybook/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ export const storybookAliases = {
expandable_flyout: 'packages/kbn-expandable-flyout/.storybook',
expression_error: 'src/plugins/expression_error/.storybook',
expression_image: 'src/plugins/expression_image/.storybook',
expression_metric_vis: 'src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook',
expression_metric_vis:
'src/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook',
expression_metric: 'src/plugins/expression_metric/.storybook',
expression_partition_vis: 'src/platform/plugins/shared/chart_expressions/expression_partition_vis/.storybook',
expression_partition_vis:
'src/platform/plugins/shared/chart_expressions/expression_partition_vis/.storybook',
expression_repeat_image: 'src/plugins/expression_repeat_image/.storybook',
expression_reveal_image: 'src/plugins/expression_reveal_image/.storybook',
expression_shape: 'src/plugins/expression_shape/.storybook',
expression_tagcloud: 'src/platform/plugins/shared/chart_expressions/expression_tagcloud/.storybook',
expression_tagcloud:
'src/platform/plugins/shared/chart_expressions/expression_tagcloud/.storybook',
fleet: 'x-pack/plugins/fleet/.storybook',
grouping: 'packages/kbn-grouping/.storybook',
home: 'src/plugins/home/.storybook',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../../../../../../../../../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common'],
roots: [
'<rootDir>/src/platform/packages/shared/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/src/plugins/chart_expressions/common',
],
};
3 changes: 2 additions & 1 deletion src/platform/plugins/private/event_annotation/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/private/event_annotation'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/event_annotation/{common,public,server}/**/*.{ts,tsx}',
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/private/event_annotation_listing'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation_listing',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/event_annotation_listing',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/event_annotation_listing/{common,public,server}/**/*.{ts,tsx}',
Expand Down
7 changes: 5 additions & 2 deletions src/platform/plugins/private/url_forwarding/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/url_forwarding'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/url_forwarding',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/url_forwarding',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/url_forwarding/public/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/url_forwarding/public/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

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

import { UrlForwardingPlugin } from './plugin';

Expand Down
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_default_editor'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_default_editor',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_default_editor',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/vis_default_editor/public/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_default_editor/public/**/*.{ts,tsx}',
],
};
3 changes: 2 additions & 1 deletion src/platform/plugins/private/vis_types/gauge/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/private/vis_types/gauge'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/gauge',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/gauge',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/gauge/{common,public,server}/**/*.{ts,tsx}',
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/private/vis_types/heatmap'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/heatmap',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/heatmap',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/heatmap/{common,public,server}/**/*.{ts,tsx}',
Expand Down
7 changes: 5 additions & 2 deletions src/platform/plugins/private/vis_types/metric/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_types/metric'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/metric',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/metric',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/vis_types/metric/{public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/metric/{public,server}/**/*.{ts,tsx}',
],
};
7 changes: 5 additions & 2 deletions src/platform/plugins/private/vis_types/pie/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_types/pie'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/pie',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/pie',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/vis_types/pie/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/pie/{common,public,server}/**/*.{ts,tsx}',
],
};
3 changes: 2 additions & 1 deletion src/platform/plugins/private/vis_types/table/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/private/vis_types/table'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/table',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/table',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/table/{common,public,server}/**/*.{js,ts,tsx}',
Expand Down
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_types/tagcloud'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/tagcloud',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/tagcloud',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/vis_types/tagcloud/{public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/tagcloud/{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/vis_types/timelion'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/timelion',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/timelion',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/timelion/{common,public,server}/**/*.{js,ts,tsx}',
Expand Down
7 changes: 5 additions & 2 deletions src/platform/plugins/private/vis_types/vega/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_types/vega'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vega',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vega',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/vis_types/vega/{public,server}/**/*.{js,ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/vega/{public,server}/**/*.{js,ts,tsx}',
],
};
3 changes: 2 additions & 1 deletion src/platform/plugins/private/vis_types/vislib/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/private/vis_types/vislib'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vislib',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/vislib',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/vislib/{common,public,server}/**/*.{js,ts,tsx}',
Expand Down
7 changes: 5 additions & 2 deletions src/platform/plugins/private/vis_types/xy/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_types/xy'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/xy',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/private/vis_types/xy',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/private/vis_types/xy/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/private/vis_types/xy/{common,public,server}/**/*.{ts,tsx}',
],
};
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/charts/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/charts'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/charts',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/charts/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/charts/{common,public,server}/**/*.{ts,tsx}',
],
};
1 change: 0 additions & 1 deletion src/platform/plugins/shared/charts/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/110891
/* eslint-disable @kbn/eslint/no_export_all */

import {
RangeSelectContext,
Expand Down
1 change: 0 additions & 1 deletion src/platform/plugins/shared/data/common/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/109904
/* eslint-disable @kbn/eslint/no_export_all */

export {
DEFAULT_QUERY_LANGUAGE,
Expand Down
4 changes: 3 additions & 1 deletion src/platform/plugins/shared/data/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/data'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/data',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}',
],
};
7 changes: 5 additions & 2 deletions src/platform/plugins/shared/expressions/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/shared/expressions'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expressions',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/expressions',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/expressions/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/expressions/{common,public,server}/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
ExecutionContract,
} from '../common';

// eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-commonjs
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { __getLastExecution, __getLastRenderMode } = require('./services');

const element = null as unknown as HTMLElement;
Expand Down
7 changes: 5 additions & 2 deletions src/platform/plugins/shared/unified_search/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/plugins/shared/unified_search'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/unified_search',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/unified_search',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/unified_search/public/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/unified_search/public/**/*.{ts,tsx}',
],
setupFiles: ['jest-canvas-mock'],
};
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/vis_types/timeseries'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/vis_types/timeseries',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/vis_types/timeseries',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/vis_types/timeseries/{common,public,server}/**/*.{js,ts,tsx}',
Expand Down
1 change: 0 additions & 1 deletion src/platform/plugins/shared/visualizations/common/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/110891
/* eslint-disable @kbn/eslint/no_export_all */

/** @public types */
export * from './types';
Expand Down
3 changes: 2 additions & 1 deletion src/platform/plugins/shared/visualizations/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/visualizations'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/visualizations',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/platform/plugins/shared/visualizations',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/visualizations/{common,public,server}/**/*.{js,ts,tsx}',
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/custom_integrations/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ module.exports = {
roots: ['<rootDir>/src/plugins/custom_integrations'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/src/plugins/custom_integrations',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/src/platform/plugins/shared/data/{common,public,server}/**/*.{ts,tsx}',
],
};
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/packages/private/kbn-random-sampling'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/packages/private/kbn-random-sampling',
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/packages/private/kbn-random-sampling',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/packages/private/kbn-random-sampling/public/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/packages/private/kbn-random-sampling/public/**/*.{ts,tsx}',
],
};
4 changes: 3 additions & 1 deletion x-pack/platform/plugins/private/graph/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/private/graph'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/private/graph',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/private/graph/{common,public,server}/**/*.{js,ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/private/graph/{common,public,server}/**/*.{js,ts,tsx}',
],
};
4 changes: 3 additions & 1 deletion x-pack/platform/plugins/shared/lens/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ module.exports = {
roots: ['<rootDir>/x-pack/platform/plugins/shared/lens'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/lens',
coverageReporters: ['text', 'html'],
collectCoverageFrom: ['<rootDir>/x-pack/platform/plugins/shared/lens/{common,public,server}/**/*.{ts,tsx}'],
collectCoverageFrom: [
'<rootDir>/x-pack/platform/plugins/shared/lens/{common,public,server}/**/*.{ts,tsx}',
],
setupFiles: ['jest-canvas-mock'],
};

0 comments on commit 8b482c7

Please sign in to comment.