Skip to content

Commit 0e9d28f

Browse files
committed
Run pre-commit on all files for sorting imports
1 parent ad9558f commit 0e9d28f

File tree

264 files changed

+1359
-1132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+1359
-1132
lines changed

.github/actions/get-node-version/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { setOutput, setFailed, getInput } from "@actions/core";
2-
import semver from "semver";
1+
import { getInput, setFailed, setOutput } from "@actions/core";
32
import { readFileSync } from "fs";
3+
import semver from "semver";
44

55
(() => {
66
const inputPath = getInput("package-json");

apps/cyberstorm-remix/app/c/community.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
import { faDiscord } from "@fortawesome/free-brands-svg-icons";
2+
import { faBook, faDownload } from "@fortawesome/free-solid-svg-icons";
3+
import { faArrowUpRight } from "@fortawesome/pro-solid-svg-icons";
4+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5+
import {
6+
getPublicEnvVariables,
7+
getSessionTools,
8+
} from "cyberstorm/security/publicEnvVariables";
9+
import { Suspense } from "react";
110
import type {
211
LoaderFunctionArgs,
312
ShouldRevalidateFunctionArgs,
@@ -9,26 +18,19 @@ import {
918
useLocation,
1019
useOutletContext,
1120
} from "react-router";
21+
1222
import {
1323
Heading,
1424
NewButton,
1525
NewIcon,
1626
NewLink,
1727
SkeletonBox,
1828
} from "@thunderstore/cyberstorm";
19-
import "./Community.css";
20-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
21-
import { faBook, faDownload } from "@fortawesome/free-solid-svg-icons";
22-
import { faDiscord } from "@fortawesome/free-brands-svg-icons";
23-
import { faArrowUpRight } from "@fortawesome/pro-solid-svg-icons";
29+
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
2430
import { DapperTs } from "@thunderstore/dapper-ts";
31+
2532
import { type OutletContextShape } from "../root";
26-
import {
27-
getPublicEnvVariables,
28-
getSessionTools,
29-
} from "cyberstorm/security/publicEnvVariables";
30-
import { Suspense } from "react";
31-
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
33+
import "./Community.css";
3234

3335
export async function loader({ params }: LoaderFunctionArgs) {
3436
if (params.communityId) {

apps/cyberstorm-remix/app/c/tabs/PackageSearch/PackageSearch.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import { useLoaderData, useOutletContext } from "react-router";
2-
import { PackageSearch } from "~/commonComponents/PackageSearch/PackageSearch";
3-
import { PackageOrderOptions } from "~/commonComponents/PackageSearch/components/PackageOrder";
4-
import { DapperTs } from "@thunderstore/dapper-ts";
51
import {
62
getPublicEnvVariables,
73
getSessionTools,
84
} from "cyberstorm/security/publicEnvVariables";
5+
import { useLoaderData, useOutletContext } from "react-router";
6+
import { PackageSearch } from "~/commonComponents/PackageSearch/PackageSearch";
7+
import { PackageOrderOptions } from "~/commonComponents/PackageSearch/components/PackageOrder";
98
import { type OutletContextShape } from "~/root";
9+
10+
import { DapperTs } from "@thunderstore/dapper-ts";
11+
1012
import type { Route } from "./+types/PackageSearch";
1113

1214
export async function loader({ params, request }: Route.LoaderArgs) {

apps/cyberstorm-remix/app/commonComponents/CheckboxList/CheckboxList.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import {
44
faSquareCheck,
55
} from "@fortawesome/free-solid-svg-icons";
66
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7+
import { memo } from "react";
8+
import { type TRISTATE } from "~/commonComponents/types";
79

8-
import "./CheckboxList.css";
910
import { Actionable, NewIcon } from "@thunderstore/cyberstorm";
1011
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
11-
import { type TRISTATE } from "~/commonComponents/types";
12-
import { memo } from "react";
12+
13+
import "./CheckboxList.css";
1314

1415
type typeA<B> = (v: B) => void;
1516

apps/cyberstorm-remix/app/commonComponents/CodeBoxHTML/CodeBoxHTML.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useState, useMemo, useRef, useEffect } from "react";
1+
import { useEffect, useMemo, useRef, useState } from "react";
2+
23
import "./CodeBoxHTML.css";
34
import "./Highlight.css";
45

apps/cyberstorm-remix/app/commonComponents/Collapsible/Collapsible.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { memo, type PropsWithChildren } from "react";
21
import { faCaretDown } from "@fortawesome/free-solid-svg-icons";
32
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4-
import "./Collapsible.css";
3+
import { type PropsWithChildren, memo } from "react";
4+
55
import { NewIcon } from "@thunderstore/cyberstorm";
66
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
77

8+
import "./Collapsible.css";
9+
810
interface Props extends PropsWithChildren {
911
headerTitle: string;
1012
defaultOpen?: boolean;

apps/cyberstorm-remix/app/commonComponents/CollapsibleText/CollapsibleText.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { type ReactElement, useState } from "react";
2+
13
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
4+
25
import "./CollapsibleText.css";
3-
import { useState, type ReactElement } from "react";
46

57
export interface CollapsibleTextProps {
68
text?: string;

apps/cyberstorm-remix/app/commonComponents/Connection/Connection.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import "./Connection.css";
1+
import { type ReactElement } from "react";
2+
23
import { NewIcon, NewSwitch } from "@thunderstore/cyberstorm";
34
import { type OAuthConnection } from "@thunderstore/dapper/types";
4-
import { type ReactElement } from "react";
5+
56
import { type userLinkedAccountDisconnectProviders } from "../../../../../packages/thunderstore-api/src";
7+
import "./Connection.css";
68

79
interface ConnectionProps {
810
name: string;

apps/cyberstorm-remix/app/commonComponents/CopyButton/CopyButton.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import { faCheck, faClone } from "@fortawesome/free-solid-svg-icons";
12
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
2-
import { faClone, faCheck } from "@fortawesome/free-solid-svg-icons";
33
import { type Dispatch, type SetStateAction, useState } from "react";
4-
import "./CopyButton.css";
5-
import { NewIcon, Tooltip } from "@thunderstore/cyberstorm/src";
64
import React from "react";
75

6+
import { NewIcon, Tooltip } from "@thunderstore/cyberstorm/src";
7+
8+
import "./CopyButton.css";
9+
810
interface CopyButtonProps {
911
text: string;
1012
}

apps/cyberstorm-remix/app/commonComponents/Footer/Footer.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
import "./Footer.css";
2-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
31
import { faDiscord, faGithub } from "@fortawesome/free-brands-svg-icons";
42
import { faBoltLightning } from "@fortawesome/free-solid-svg-icons";
3+
import { faArrowUpRight } from "@fortawesome/pro-solid-svg-icons";
4+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5+
56
import {
67
Heading,
78
NewButton,
89
NewIcon,
910
NewLink,
1011
ThunderstoreLogoHorizontal,
1112
} from "@thunderstore/cyberstorm";
12-
import { faArrowUpRight } from "@fortawesome/pro-solid-svg-icons";
13+
14+
import "./Footer.css";
1315

1416
const AD_IMAGE_SRC = "/cyberstorm-static/images/tsmm_screenshot.png";
1517
const DISCORD_URL = "https://discord.thunderstore.io/";

0 commit comments

Comments
 (0)