ESLint: Add rule to sort imports alphabetically
The `import/order` rule isn't enough to sort import within a single import group alphabetically. This adds `sort-imports` rule that handles the sorting within groups.
This commit is contained in:
parent
91b2cc2d10
commit
25a5f140d8
98 changed files with 437 additions and 432 deletions
|
|
@ -3,7 +3,7 @@ import React, { useEffect, useState } from 'react';
|
|||
import { ClipboardCopy } from '@patternfly/react-core';
|
||||
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
||||
|
||||
import { StatusClone, AwsDetailsStatus } from './Status';
|
||||
import { AwsDetailsStatus, StatusClone } from './Status';
|
||||
|
||||
import {
|
||||
ClonesResponseItem,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
EmptyState,
|
||||
EmptyStateBody,
|
||||
EmptyStateVariant,
|
||||
Content,
|
||||
EmptyStateActions,
|
||||
EmptyStateFooter,
|
||||
Bullseye,
|
||||
Button,
|
||||
Content,
|
||||
EmptyState,
|
||||
EmptyStateActions,
|
||||
EmptyStateBody,
|
||||
EmptyStateFooter,
|
||||
EmptyStateVariant,
|
||||
} from '@patternfly/react-core';
|
||||
import {
|
||||
ExternalLinkAltIcon,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Alert,
|
||||
Button,
|
||||
ClipboardCopy,
|
||||
DescriptionList,
|
||||
DescriptionListGroup,
|
||||
DescriptionListDescription,
|
||||
DescriptionListGroup,
|
||||
DescriptionListTerm,
|
||||
Button,
|
||||
Popover,
|
||||
Alert,
|
||||
Skeleton,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Alert,
|
||||
Badge,
|
||||
Bullseye,
|
||||
Button,
|
||||
PageSection,
|
||||
Pagination,
|
||||
PaginationVariant,
|
||||
Spinner,
|
||||
Toolbar,
|
||||
ToolbarContent,
|
||||
ToolbarItem,
|
||||
Alert,
|
||||
Spinner,
|
||||
Bullseye,
|
||||
Badge,
|
||||
Button,
|
||||
PageSection,
|
||||
} from '@patternfly/react-core';
|
||||
import { OnSetPage } from '@patternfly/react-core/dist/esm/components/Pagination/Pagination';
|
||||
import {
|
||||
|
|
@ -42,11 +42,11 @@ import ImagesTableToolbar from './ImagesTableToolbar';
|
|||
import {
|
||||
AwsS3Instance,
|
||||
CloudInstance,
|
||||
OciInstance,
|
||||
LocalInstance,
|
||||
OciInstance,
|
||||
} from './Instance';
|
||||
import Release from './Release';
|
||||
import { ExpiringStatus, CloudStatus, LocalStatus } from './Status';
|
||||
import { CloudStatus, ExpiringStatus, LocalStatus } from './Status';
|
||||
import { AwsTarget, Target } from './Target';
|
||||
|
||||
import {
|
||||
|
|
@ -59,10 +59,10 @@ import {
|
|||
STATUS_POLLING_INTERVAL,
|
||||
} from '../../constants';
|
||||
import {
|
||||
useGetComposeStatusQuery,
|
||||
useGetComposesQuery,
|
||||
useGetBlueprintsQuery,
|
||||
useGetBlueprintComposesQuery,
|
||||
useGetBlueprintsQuery,
|
||||
useGetComposesQuery,
|
||||
useGetComposeStatusQuery,
|
||||
} from '../../store/backendApi';
|
||||
import {
|
||||
selectBlueprintSearchInput,
|
||||
|
|
|
|||
|
|
@ -7,28 +7,28 @@ import {
|
|||
List,
|
||||
ListItem,
|
||||
Pagination,
|
||||
Title,
|
||||
Toolbar,
|
||||
ToolbarContent,
|
||||
ToolbarItem,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
import { useFixupBPWithNotification as useFixupBlueprintMutation } from '../../Hooks';
|
||||
import {
|
||||
useGetBlueprintsQuery,
|
||||
useGetBlueprintQuery,
|
||||
useGetBlueprintsQuery,
|
||||
} from '../../store/backendApi';
|
||||
import {
|
||||
selectSelectedBlueprintId,
|
||||
selectBlueprintSearchInput,
|
||||
selectBlueprintVersionFilterAPI,
|
||||
selectSelectedBlueprintId,
|
||||
} from '../../store/BlueprintSlice';
|
||||
import { useAppSelector } from '../../store/hooks';
|
||||
import {
|
||||
BlueprintItem,
|
||||
useGetBlueprintComposesQuery,
|
||||
Distributions,
|
||||
GetBlueprintComposesApiArg,
|
||||
useGetBlueprintComposesQuery,
|
||||
} from '../../store/imageBuilderApi';
|
||||
import { BlueprintActionsMenu } from '../Blueprints/BlueprintActionsMenu';
|
||||
import BlueprintDiffModal from '../Blueprints/BlueprintDiffModal';
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ import {
|
|||
} from '../../constants';
|
||||
import { useGetBlueprintsQuery, useGetComposeStatusQuery } from '../../store/backendApi';
|
||||
import {
|
||||
selectSelectedBlueprintId,
|
||||
selectBlueprintSearchInput,
|
||||
selectSelectedBlueprintId,
|
||||
} from '../../store/BlueprintSlice';
|
||||
import { LocalUploadStatus } from '../../store/cockpit/composerCloudApi';
|
||||
import { useAppSelector } from '../../store/hooks';
|
||||
|
|
@ -45,8 +45,8 @@ import {
|
|||
ImageTypes,
|
||||
} from '../../store/imageBuilderApi';
|
||||
import {
|
||||
isAwsUploadRequestOptions,
|
||||
isAwss3UploadStatus,
|
||||
isAwsUploadRequestOptions,
|
||||
isGcpUploadRequestOptions,
|
||||
isOciUploadStatus,
|
||||
} from '../../store/typeGuards';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import {
|
|||
Button,
|
||||
CodeBlock,
|
||||
CodeBlockCode,
|
||||
Content,
|
||||
Flex,
|
||||
Icon,
|
||||
Panel,
|
||||
|
|
@ -13,7 +14,6 @@ import {
|
|||
Popover,
|
||||
Skeleton,
|
||||
Spinner,
|
||||
Content,
|
||||
} from '@patternfly/react-core';
|
||||
import {
|
||||
CheckCircleIcon,
|
||||
|
|
@ -34,9 +34,9 @@ import {
|
|||
import { useGetComposeStatusQuery } from '../../store/backendApi';
|
||||
import {
|
||||
ClonesResponseItem,
|
||||
ComposesResponseItem,
|
||||
ComposeStatus,
|
||||
ComposeStatusError,
|
||||
ComposesResponseItem,
|
||||
UploadStatus,
|
||||
} from '../../store/imageBuilderApi';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue