From 30caab10e3f94bfd3926b2a05d92d87464e77987 Mon Sep 17 00:00:00 2001 From: Gregoire Pailler Date: Sun, 5 May 2024 18:27:04 +0300 Subject: [PATCH] Fix updated linter rules (import/order) --- package.json | 2 +- src/components/Buckets.tsx | 4 ++-- src/components/Home.tsx | 2 +- src/components/Root.tsx | 2 +- src/components/Search.tsx | 6 +++--- src/components/SearchProcessor.tsx | 2 +- src/components/SearchResult.tsx | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 812d363..4d87850 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "react-image": "^4.0.3", "react-router-dom": "^6.2.1", "react-syntax-highlighter": "^15.5.0", + "rollup-plugin-visualizer": "^5.8.3", "spdx-license-ids": "^3.0.11", "vite": "^4.5.3", - "rollup-plugin-visualizer": "^5.8.3", "web-vitals": "^2.1.3" }, "scripts": { diff --git a/src/components/Buckets.tsx b/src/components/Buckets.tsx index 8c9461d..d9818ac 100644 --- a/src/components/Buckets.tsx +++ b/src/components/Buckets.tsx @@ -5,10 +5,10 @@ import Table from 'react-bootstrap/Table'; import { Helmet } from 'react-helmet'; import { Link } from 'react-router-dom'; -import BucketsResultsJson from '../serialization/BucketsResultsJson'; -import Utils from '../utils'; import BucketTypeIcon from './BucketTypeIcon'; import SearchStatus, { SearchStatusType } from './SearchStatus'; +import BucketsResultsJson from '../serialization/BucketsResultsJson'; +import Utils from '../utils'; type Bucket = { bucket: string; diff --git a/src/components/Home.tsx b/src/components/Home.tsx index 7e4ec85..2ab3c88 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -8,9 +8,9 @@ import powershell from 'react-syntax-highlighter/dist/esm/languages/prism/powers import darkStyle from 'react-syntax-highlighter/dist/esm/styles/prism/a11y-dark'; import lightStyle from 'react-syntax-highlighter/dist/esm/styles/prism/ghcolors'; -import { ColorSchemeContext } from '../colorscheme/ColorSchemeContext'; import AsciinemaCasts, { AsciinemaCastItem } from './AsciinemaCasts'; import SearchBar from './SearchBar'; +import { ColorSchemeContext } from '../colorscheme/ColorSchemeContext'; SyntaxHighlighterBase.registerLanguage('powershell', powershell); SyntaxHighlighterBase.registerLanguage('json', json); diff --git a/src/components/Root.tsx b/src/components/Root.tsx index dff19d4..f134eca 100644 --- a/src/components/Root.tsx +++ b/src/components/Root.tsx @@ -1,9 +1,9 @@ import { IconContext } from 'react-icons'; import { Outlet } from 'react-router-dom'; -import ColorSchemeProvider from '../colorscheme/ColorSchemeProvider'; import Footer from './Footer'; import NavBar from './NavBar'; +import ColorSchemeProvider from '../colorscheme/ColorSchemeProvider'; const Root = (): JSX.Element => { return ( diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 3c0976e..4bbc7ca 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -4,13 +4,13 @@ import { Container, Row, Col, Modal } from 'react-bootstrap'; import { Helmet } from 'react-helmet'; import { useSearchParams } from 'react-router-dom'; -import { requestIdleCallback } from '../request-idle-callback'; -import ManifestJson from '../serialization/ManifestJson'; -import SearchResultsJson from '../serialization/SearchResultsJson'; import SearchBar from './SearchBar'; import SearchPagination from './SearchPagination'; import SearchProcessor, { SortDirection, sortModes } from './SearchProcessor'; import SearchResult from './SearchResult'; +import { requestIdleCallback } from '../request-idle-callback'; +import ManifestJson from '../serialization/ManifestJson'; +import SearchResultsJson from '../serialization/SearchResultsJson'; const RESULTS_PER_PAGE = 20; const SEARCH_PARAM_QUERY = 'q'; diff --git a/src/components/SearchProcessor.tsx b/src/components/SearchProcessor.tsx index 8e82833..07e6211 100644 --- a/src/components/SearchProcessor.tsx +++ b/src/components/SearchProcessor.tsx @@ -5,9 +5,9 @@ import { IconBaseProps } from 'react-icons'; import { FaSortAmountDown, FaSortAmountUp } from 'react-icons/fa'; import { GoSettings } from 'react-icons/go'; -import SearchResultsJson from '../serialization/SearchResultsJson'; import BucketTypeIcon from './BucketTypeIcon'; import SearchStatus, { SearchStatusType } from './SearchStatus'; +import SearchResultsJson from '../serialization/SearchResultsJson'; export enum SortDirection { Ascending, diff --git a/src/components/SearchResult.tsx b/src/components/SearchResult.tsx index d4ff456..05bc6cc 100644 --- a/src/components/SearchResult.tsx +++ b/src/components/SearchResult.tsx @@ -9,10 +9,10 @@ import { Img } from 'react-image'; import deprecatedSpdxLicenses from 'spdx-license-ids/deprecated.json'; import supportedSpdxLicenses from 'spdx-license-ids/index.json'; -import ManifestJson from '../serialization/ManifestJson'; -import Utils from '../utils'; import BucketTypeIcon from './BucketTypeIcon'; import CopyToClipboardButton from './CopyToClipboardButton'; +import ManifestJson from '../serialization/ManifestJson'; +import Utils from '../utils'; const spdxLicenses = supportedSpdxLicenses.concat(deprecatedSpdxLicenses);