Skip to content

Commit

Permalink
Resolve linter/formatter conflict (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Aug 26, 2024
1 parent cc96598 commit 8f169a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions app/routes/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ export async function loader({ request, context }: LoaderFunctionArgs) {
}

const AccountIcon = ({ type }: { type: "github" | "twitter" }): JSX.Element =>
({
github: <FaGithub />,
twitter: <FaTwitter />,
}[type]);
type === "github" ? <FaGithub /> : <FaTwitter />;

const AccountList = ({ list }: { list: AssociationLinks }): JSX.Element =>
list.length === 0 ? (
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pluginJs from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import reactJSXRuntime from "eslint-plugin-react/configs/jsx-runtime.js";
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
import simpleImportSort from "eslint-plugin-simple-import-sort";
Expand Down Expand Up @@ -44,4 +45,5 @@ export default [
"simple-import-sort/exports": "error",
},
},
eslintPluginPrettierRecommended,
];
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"@types/react": "^18.3.4",
"autoprefixer": "^10.4.20",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"globals": "^15.9.0",
Expand Down

0 comments on commit 8f169a0

Please sign in to comment.