diff --git a/graylog2-web-interface/src/components/common/Select/PaginatedSelect.test.tsx b/graylog2-web-interface/src/components/common/Select/PaginatedSelect.test.tsx index 7c120ab0f3..d659f1055c 100644 --- a/graylog2-web-interface/src/components/common/Select/PaginatedSelect.test.tsx +++ b/graylog2-web-interface/src/components/common/Select/PaginatedSelect.test.tsx @@ -47,13 +47,7 @@ describe('PaginatedSelect', () => { // "str.replace is not a function". const onLoadOptions = jest.fn(() => Promise.resolve(mockOptions)); - render( - {}} - />, - ); + render( {}} />); // Wait for initial load await act(() => jest.runAllTimersAsync()); diff --git a/graylog2-web-interface/src/components/configurations/message-processors/MessageProcessorStatusFormGroup.tsx b/graylog2-web-interface/src/components/configurations/message-processors/MessageProcessorStatusFormGroup.tsx index d21bf43ef5..f538eae578 100644 --- a/graylog2-web-interface/src/components/configurations/message-processors/MessageProcessorStatusFormGroup.tsx +++ b/graylog2-web-interface/src/components/configurations/message-processors/MessageProcessorStatusFormGroup.tsx @@ -39,7 +39,7 @@ const MessageProcessorStatusFormGroup = () => { return ( {processor.name} - {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */} + {} - {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */} + {} diff --git a/graylog2-web-interface/src/components/sidecars/sidecars/SidecarList.tsx b/graylog2-web-interface/src/components/sidecars/sidecars/SidecarList.tsx index 25676c3f7f..33f3e003f7 100644 --- a/graylog2-web-interface/src/components/sidecars/sidecars/SidecarList.tsx +++ b/graylog2-web-interface/src/components/sidecars/sidecars/SidecarList.tsx @@ -78,9 +78,7 @@ class SidecarList extends React.Component< /> ))} - -   - +   {sidecars} diff --git a/graylog2-web-interface/src/logic/permissions/SelectedGrantee.test.ts b/graylog2-web-interface/src/logic/permissions/SelectedGrantee.test.ts index f7b6dae4e6..524541737e 100644 --- a/graylog2-web-interface/src/logic/permissions/SelectedGrantee.test.ts +++ b/graylog2-web-interface/src/logic/permissions/SelectedGrantee.test.ts @@ -37,5 +37,7 @@ describe('SelectedGrantee', () => { ${alice} | ${owner} | ${'unchanged'} ${alice} | ${manager} | ${'changed'} ${bob} | ${manager} | ${'new'} - `('should return current state of $expectedReturn grantee', ({ grantee, capability, expectedReturn }) => expectCurrentState({ grantee, capability, expectedReturn })); + `('should return current state of $expectedReturn grantee', ({ grantee, capability, expectedReturn }) => + expectCurrentState({ grantee, capability, expectedReturn }), + ); }); diff --git a/graylog2-web-interface/src/stores/__tests__/isDeepEqual.test.ts b/graylog2-web-interface/src/stores/__tests__/isDeepEqual.test.ts index 5457eac4a5..9b419197f5 100644 --- a/graylog2-web-interface/src/stores/__tests__/isDeepEqual.test.ts +++ b/graylog2-web-interface/src/stores/__tests__/isDeepEqual.test.ts @@ -63,5 +63,7 @@ describe('isDeepEqual', () => { ${objectWithMap()} | ${objectWithMap()} | ${true} | ${'objects containing immutable maps'} ${arrayOfMaps()} | ${arrayOfMaps()} | ${true} | ${'arrays containing immutable maps'} ${mixedMapsAndObjects()} | ${mixedMapsAndObjects()} | ${true} | ${'nested immutable maps and objects'} - `('compares $description and returns $result', ({ initial, next, result }) => expectIsDeepEqual({ initial, next, result })); + `('compares $description and returns $result', ({ initial, next, result }) => + expectIsDeepEqual({ initial, next, result }), + ); }); diff --git a/graylog2-web-interface/src/views/logic/views/UseCreateViewForEvent.ts b/graylog2-web-interface/src/views/logic/views/UseCreateViewForEvent.ts index 872854176b..615b317524 100644 --- a/graylog2-web-interface/src/views/logic/views/UseCreateViewForEvent.ts +++ b/graylog2-web-interface/src/views/logic/views/UseCreateViewForEvent.ts @@ -91,7 +91,13 @@ const createViewWidget = ({ groupBy, fnSeries, expr }: { groupBy: Array; return getAggregationWidget({ rowPivots, fnSeries: [fnSeriesForFunc], sort }); }; -const getSummaryAggregation = ({ aggregations, groupBy }: { aggregations: Array; groupBy: Array }) => { +const getSummaryAggregation = ({ + aggregations, + groupBy, +}: { + aggregations: Array; + groupBy: Array; +}) => { const { summaryFnSeries, summaryTitle } = aggregations.reduce<{ summaryFnSeries: string[]; summaryTitle: string }>( (res, { value, expr, fnSeries }) => { const concatTitle = `${fnSeries} ${expr} ${value}`; @@ -119,7 +125,12 @@ const getSummaryAggregation = ({ aggregations, groupBy }: { aggregations: Array< }; }; -export const WidgetsGenerator = async ({ streams, streamCategories, aggregations, groupBy }: { +export const WidgetsGenerator = async ({ + streams, + streamCategories, + aggregations, + groupBy, +}: { streams: string | string[] | undefined; streamCategories: string | string[] | undefined; aggregations: Array;