diff --git a/eslint.config.mjs b/eslint.config.mjs index c9297f824..cabac8859 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,10 +3,8 @@ import defineConfig, { GLOB_TS_SRC } from "eslint-config-hyoban" export default defineConfig( { - typeChecked: false, react: "vite", tailwindCSS: true, - fileCase: false, stylistic: { quotes: "double", arrowParens: true, diff --git a/package.json b/package.json index 6e507e87c..d11bb8d58 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "electron-builder": "^24.9.1", "electron-vite": "^2.2.0", "eslint": "^9.3.0", - "eslint-config-hyoban": "3.0.0-beta.7", + "eslint-config-hyoban": "3.0.0-beta.10", "lint-staged": "15.2.5", "postcss": "8.4.38", "postcss-js": "4.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 52d9f993b..40a96b9cb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -226,8 +226,8 @@ importers: specifier: ^9.3.0 version: 9.3.0 eslint-config-hyoban: - specifier: 3.0.0-beta.7 - version: 3.0.0-beta.7(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.3.0)(typescript@5.4.5))(eslint@9.3.0)(tailwindcss@3.4.3)(typescript@5.4.5) + specifier: 3.0.0-beta.10 + version: 3.0.0-beta.10(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.3.0)(typescript@5.4.5))(eslint@9.3.0)(tailwindcss@3.4.3)(typescript@5.4.5) lint-staged: specifier: 15.2.5 version: 15.2.5 @@ -2812,8 +2812,8 @@ packages: eslint-config-flat-gitignore@0.1.5: resolution: {integrity: sha512-hEZLwuZjDBGDERA49c2q7vxc8sCGv8EdBp6PQYzGOMcHIgrfG9YOM6s/4jx24zhD+wnK9AI8mgN5RxSss5nClQ==} - eslint-config-hyoban@3.0.0-beta.7: - resolution: {integrity: sha512-F+2d0m//HfpFhD5ulSjwZwAsoKg1+EOxYWDBWr8bSlzQsBhcq/6eGhriKkUJ2GbXyCllRdqFv9lZlDc6KBvPUQ==} + eslint-config-hyoban@3.0.0-beta.10: + resolution: {integrity: sha512-D93zIpk66nL5c6uIGhIiBjqe9w6IYaf8JePpiv/MsZIcr989bWH0MhjD4QAUNpv4rcDqgqTYj3yEsZmheX+jFQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -8170,7 +8170,7 @@ snapshots: find-up: 7.0.0 parse-gitignore: 2.0.0 - eslint-config-hyoban@3.0.0-beta.7(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.3.0)(typescript@5.4.5))(eslint@9.3.0)(tailwindcss@3.4.3)(typescript@5.4.5): + eslint-config-hyoban@3.0.0-beta.10(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.3.0)(typescript@5.4.5))(eslint@9.3.0)(tailwindcss@3.4.3)(typescript@5.4.5): dependencies: '@cspell/eslint-plugin': 8.8.3(eslint@9.3.0) '@eslint-react/eslint-plugin': 1.5.14(@typescript-eslint/parser@8.0.0-alpha.20(eslint@9.3.0)(typescript@5.4.5))(eslint@9.3.0)(typescript@5.4.5) diff --git a/src/renderer/src/components/discover/form.tsx b/src/renderer/src/components/discover/form.tsx index 079a7406a..55ab152d9 100644 --- a/src/renderer/src/components/discover/form.tsx +++ b/src/renderer/src/components/discover/form.tsx @@ -137,87 +137,83 @@ export function DiscoverForm({ type }: { type: string }) { docs={item.docs} /> - {item.docs ? - ( - - - - - - ) : - ( - <> - - {!!item.entries?.length && ( -
- {item.entries - .filter((e) => !!e) - .map((entry) => { - const assertEntry = entry - return ( - - {assertEntry.images?.[0] ? - ( - - ) : - ( -
- {assertEntry.title} -
- )} -
- {assertEntry.title} -
-
- ) - })} -
- )} -
- - {item.isSubscribed ? - ( - - ) : - ( - + + + ) : ( + <> + + {!!item.entries?.length && ( +
+ {item.entries + .filter((e) => !!e) + .map((entry) => { + const assertEntry = entry + return ( + - Follow - - )} -
- - {item.subscriptionCount} - - {" "} - Followers -
- - - )} + {assertEntry.images?.[0] ? ( + + ) : ( +
+ {assertEntry.title} +
+ )} +
+ {assertEntry.title} +
+
+ ) + })} +
+ )} +
+ + {item.isSubscribed ? ( + + ) : ( + + )} +
+ + {item.subscriptionCount} + + {" "} + Followers +
+
+ + )} ))}