From d2d7892325ed052fabf50a4e58f166db03eec4bf Mon Sep 17 00:00:00 2001 From: wangcham Date: Mon, 9 Feb 2026 00:36:30 +0800 Subject: [PATCH] fix: lint --- web/.prettierrc.mjs | 1 - .../monitoring/components/overview-cards/TrafficChart.tsx | 5 ++++- .../components/plugin-installed/PluginInstalledComponent.tsx | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/.prettierrc.mjs b/web/.prettierrc.mjs index 01ed3d48..968c0f78 100644 --- a/web/.prettierrc.mjs +++ b/web/.prettierrc.mjs @@ -15,7 +15,6 @@ const config = { singleQuote: true, // 大括号前后空格 bracketSpacing: true, - attributeVerticalAlignment: 'auto', trailingComma: 'all', }; diff --git a/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx b/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx index f4ac6bbd..97d68e4d 100644 --- a/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx +++ b/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx @@ -74,7 +74,10 @@ export default function TrafficChart({ // <= 7 days: 4-hour buckets bucketSize = 4 * 60 * 60 * 1000; formatTime = (date) => - `${date.toLocaleDateString([], { month: 'short', day: 'numeric' })} ${date.toLocaleTimeString([], { hour: '2-digit' })}`; + `${date.toLocaleDateString([], { + month: 'short', + day: 'numeric', + })} ${date.toLocaleTimeString([], { hour: '2-digit' })}`; } else { // > 7 days: 1-day buckets bucketSize = 24 * 60 * 60 * 1000; diff --git a/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx b/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx index d8d1b3db..baedfee3 100644 --- a/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx +++ b/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx @@ -389,7 +389,9 @@ const PluginInstalledComponent = forwardRef( {readmePlugin && - `${readmePlugin.author}/${readmePlugin.name} - ${t('plugins.readme')}`} + `${readmePlugin.author}/${readmePlugin.name} - ${t( + 'plugins.readme', + )}`}