Skip to content

Commit

Permalink
Running lint --fix (#20451)
Browse files Browse the repository at this point in the history
Co-authored-by: Dr. Lint-a-lot <[email protected]>
  • Loading branch information
github-actions[bot] and Dr. Lint-a-lot authored Sep 16, 2024
1 parent aab158c commit 64f6e2e
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ const ReportedErrorBoundary = ({ children }: Props) => {
return <ReportedErrorPage reportedError={reportedError} />;
}

// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{children}</>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const EventDefinitionLink = ({ event, eventDefinitionContext }: Props) => {
return isPermitted(currentUser.permissions,
`eventdefinitions:edit:${eventDefinitionContext.id}`)
? <Link to={Routes.ALERTS.DEFINITIONS.edit(eventDefinitionContext.id)}>{eventDefinitionContext.title}</Link>
// eslint-disable-next-line react/jsx-no-useless-fragment

: <>{eventDefinitionContext.title}</>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const SidecarFailureTrackingRows = ({ sidecar, collectors, onShowDetails }: Prop
const getCollectorInformation = (collectorId: string) => collectors.find((collector) => collector.id === collectorId);

return (
// eslint-disable-next-line react/jsx-no-useless-fragment

<>
{collectorStatusList?.filter((collector) => collector.status === SidecarStatusEnum.FAILING).map((collector) => {
const collectorData = getCollectorInformation(collector.collector_id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const ActionTitle = ({ action, handlerArgs }: { action: ActionDefinition, handle
}
}

// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{action.title}</>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type Props = {
const IfDashboard = ({ children }: Props) => {
const viewType = useViewType();

// eslint-disable-next-line react/jsx-no-useless-fragment
return viewType === View.Type.Dashboard ? <>{children}</> : null;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ const ColumnPivotFieldsHeaders = ({ fields, pivots, values, series, offset = 1,
);
});

// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{headerRows}</>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const fieldType = (fieldName, { decoration_stats: decorationStats }: {

const Strong = ({ children, strong = false }: React.PropsWithChildren<{ strong: boolean }>) => (strong
? <strong>{children}</strong>
// eslint-disable-next-line react/jsx-no-useless-fragment

: <>{children}</>);

const MessageTableEntry = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type Props = {
const IfSearch = ({ children }: Props) => {
const viewType = useViewType();

// eslint-disable-next-line react/jsx-no-useless-fragment
return viewType === View.Type.Search ? <>{children}</> : null;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const debouncedTestNaturalDate = debounceWithPromise((

const TimePreview = ({ dateTime, isLoading }: { dateTime: string, isLoading: boolean }) => {
if (!dateTime || isLoading) {
// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{EMPTY_RANGE}</>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ const PlotLegend = ({
const _labelFields = useMemo(() => labelFields(config), [config, labelFields]);

if (!neverHide && (!focusedWidget || !focusedWidget.editing) && series.length <= 1 && columnPivots.length <= 0) {
// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{children}</>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const SearchQueryExecutionInfoHelper = ({ currentWidgetMapping, children }: Prop
{isEmpty(result) ? <i>No query executed yet.</i> : <HelpPopover widgetExecutionData={widgetExecutionData} />}
</Popover.Dropdown>
</Popover>
// eslint-disable-next-line react/jsx-no-useless-fragment

) : <>{children}</>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const EventDetailsWrapper = ({ eventId }: { eventId: string }) => {
const puggableEventDetails = usePluggableEventDetails(eventId);

if (puggableEventDetails?.length) {
// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{puggableEventDetails}</>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const EventDefinitionName = ({ eventDefinitionId, displayAsLink }: Props) => {
}

if (!displayAsLink || !canViewDefinition) {
// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{title}</>;
}

Expand Down

0 comments on commit 64f6e2e

Please sign in to comment.