ESLint: Add rule for duplicate imports
We had decent amount of import groups split into several imports, this adds a rule to output error when there's a duplicate import.
This commit is contained in:
parent
a0fe3644c3
commit
91b2cc2d10
27 changed files with 69 additions and 78 deletions
|
|
@ -6,8 +6,7 @@ import {
|
|||
Content,
|
||||
ContentVariants,
|
||||
} from '@patternfly/react-core';
|
||||
import { PlusCircleIcon } from '@patternfly/react-icons';
|
||||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
import { ExternalLinkAltIcon, PlusCircleIcon } from '@patternfly/react-icons';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import FileSystemTable from './FileSystemTable';
|
||||
|
|
|
|||
|
|
@ -2,11 +2,12 @@ import React from 'react';
|
|||
|
||||
import {
|
||||
Alert,
|
||||
Button,
|
||||
Spinner,
|
||||
Content,
|
||||
ContentVariants,
|
||||
Popover,
|
||||
} from '@patternfly/react-core';
|
||||
import { Button, Popover } from '@patternfly/react-core';
|
||||
import { HelpIcon } from '@patternfly/react-icons';
|
||||
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
||||
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@ import {
|
|||
import { ExclamationTriangleIcon } from '@patternfly/react-icons';
|
||||
|
||||
import {
|
||||
FSReviewTable,
|
||||
PackagesTable,
|
||||
RepositoriesTable,
|
||||
SnapshotTable,
|
||||
} from './ReviewStepTables';
|
||||
import { FSReviewTable } from './ReviewStepTables';
|
||||
|
||||
import {
|
||||
ON_PREM_RELEASES,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
Select,
|
||||
SelectOption,
|
||||
SelectList,
|
||||
|
|
@ -12,8 +14,6 @@ import {
|
|||
Button,
|
||||
FormGroup,
|
||||
} from '@patternfly/react-core';
|
||||
import { HelperTextItem } from '@patternfly/react-core';
|
||||
import { HelperText } from '@patternfly/react-core';
|
||||
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
||||
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue