From 98f03c2296aff63f41b8d4dedb2307b27af30952 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 19 Sep 2024 19:15:05 +0300 Subject: [PATCH] linted --- package.json | 7 +------ src/components/Feed/Placeholder/Placeholder.tsx | 12 ++++++------ src/routes/author/[slug]/[...tab].tsx | 10 ++++++---- vite.config.ts | 2 +- 4 files changed, 14 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 855f9637..3d71ac47 100644 --- a/package.json +++ b/package.json @@ -144,12 +144,7 @@ "engines": { "node": ">= 20" }, - "trustedDependencies": [ - "@biomejs/biome", - "@swc/core", - "esbuild", - "protobufjs" - ], + "trustedDependencies": ["@biomejs/biome", "@swc/core", "esbuild", "protobufjs"], "dependencies": { "form-data": "^4.0.0", "idb": "^8.0.0", diff --git a/src/components/Feed/Placeholder/Placeholder.tsx b/src/components/Feed/Placeholder/Placeholder.tsx index 4f106b75..5fcbdfe5 100644 --- a/src/components/Feed/Placeholder/Placeholder.tsx +++ b/src/components/Feed/Placeholder/Placeholder.tsx @@ -99,17 +99,17 @@ export const Placeholder = (props: PlaceholderProps) => { // dufok (^-^') mem for placeholder data without a fallback, it will be `undefined` if not found const placeholderData = createMemo(() => { - const dataForType = data[props.type]; + const dataForType = data[props.type] if (!dataForType) { - console.warn(`No placeholder data found for type: ${props.type}`); + console.warn(`No placeholder data found for type: ${props.type}`) } - return dataForType; - // (^-^') No fallback to ensure it is empty when data is missing - }); + return dataForType + // (^-^') No fallback to ensure it is empty when data is missing + }) // (^-^') Return null if no placeholder data is found if (!placeholderData()) { - return null; + return null } return ( diff --git a/src/routes/author/[slug]/[...tab].tsx b/src/routes/author/[slug]/[...tab].tsx index aeac7987..78174557 100644 --- a/src/routes/author/[slug]/[...tab].tsx +++ b/src/routes/author/[slug]/[...tab].tsx @@ -133,10 +133,12 @@ export default function AuthorPage(props: RouteSectionProps) { ) return ( - { - console.error('ErrorBoundary caught an error', _err) - return - }}> + { + console.error('ErrorBoundary caught an error', _err) + return + }} + > }>