Skip to content

Commit

Permalink
Revert "[CI] Auto-commit changed files from 'node scripts/eslint --no…
Browse files Browse the repository at this point in the history
…-cache --fix'"

This reverts commit 00b8170.
  • Loading branch information
kapral18 authored and PhilippeOberti committed Dec 11, 2024
1 parent 6166b57 commit f3695c9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const memoizedGetColumnHeaders: (
isEventRenderedView: boolean
) => ColumnHeaderOptions[] = memoizeOne(getColumnHeaders);

// eslint-disable-next-line react/display-name
export const DataTableComponent = React.memo<DataTableProps>(
({
additionalControls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Object.defineProperty(window, 'localStorage', {
});
window.scrollTo = jest.fn();

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const createStore = (state: any) => createReduxStore(() => {}, state);

/** A utility for wrapping children in the providers required to run most tests */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { EuiSpacer } from '@elastic/eui';
import type { HistoricalResult as HistoricalResultType } from '../../../../../../../types';
import { IndexStatsPanel } from '../../../index_stats_panel';
import { HistoricalCheckFields } from './historical_check_fields';

// eslint-disable-next-line no-restricted-imports
import { isNonLegacyHistoricalResult } from './utils/is_non_legacy_historical_result';

// eslint-disable-next-line no-restricted-imports
import { LegacyHistoricalCheckFields } from './legacy_historical_check_fields';

export interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { getHistoricalResultStub } from '../../../../../../../../stub/get_historical_result_stub';

// eslint-disable-next-line no-restricted-imports
import { isNonLegacyHistoricalResult } from './is_non_legacy_historical_result';

describe('isNonLegacyHistoricalResult', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ describe('checkIndex', () => {

mockFetchMappings = jest.fn(
(_: { abortController: AbortController; patternOrIndexName: string }) =>
// eslint-disable-next-line prefer-promise-reject-errors
Promise.reject(undefined)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export const SolutionSideNav = (params: SolutionSideNavProps) => (
icon={'logoSecurity'}
isOpenOnDesktop={true}
canBeCollapsed={false}
// eslint-disable-next-line react/no-children-prop
children={
<SolutionSideNavComponent
items={params.items}
Expand Down

0 comments on commit f3695c9

Please sign in to comment.