From 093edca1309501464e8230a804e269e217040e82 Mon Sep 17 00:00:00 2001 From: HynoR <20227709+HynoR@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:38:16 +0800 Subject: [PATCH] style: Update Prettier configuration and adjust SCSS formatting - Added iconfont directory to .prettierignore - Removed jsxBracketSameLine option from .prettierrc.js - Fixed indentation in common.scss and reset.scss files --- frontend/.prettierignore | 1 + frontend/.prettierrc.js | 2 -- frontend/src/styles/common.scss | 4 ++-- frontend/src/styles/reset.scss | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/.prettierignore b/frontend/.prettierignore index 665f9972f327..749c863ff3a0 100644 --- a/frontend/.prettierignore +++ b/frontend/.prettierignore @@ -6,3 +6,4 @@ **/*.sh /public/* +/src/assets/iconfont/** \ No newline at end of file diff --git a/frontend/.prettierrc.js b/frontend/.prettierrc.js index 07a0838eed9f..42706969acf2 100644 --- a/frontend/.prettierrc.js +++ b/frontend/.prettierrc.js @@ -17,8 +17,6 @@ module.exports = { trailingComma: 'all', // 大括号内的首尾需要空格 { foo: bar } bracketSpacing: true, - // jsx 标签的反尖括号需要换行 - jsxBracketSameLine: false, // 箭头函数,只有一个参数的时候,也需要括号 arrowParens: 'always', // 每个文件格式化的范围是文件的全部内容 diff --git a/frontend/src/styles/common.scss b/frontend/src/styles/common.scss index c6ff129580f5..87d953b2759d 100644 --- a/frontend/src/styles/common.scss +++ b/frontend/src/styles/common.scss @@ -353,7 +353,7 @@ html { } .node-dashboard-card { - .header { + .header { display: flex; justify-content: space-between; align-items: center; @@ -389,4 +389,4 @@ html { align-items: center; } } -} \ No newline at end of file +} diff --git a/frontend/src/styles/reset.scss b/frontend/src/styles/reset.scss index 52a8a463e211..2dfafce4ad9e 100644 --- a/frontend/src/styles/reset.scss +++ b/frontend/src/styles/reset.scss @@ -27,4 +27,4 @@ body, .el-alert__title { display: flex; align-items: center; -} \ No newline at end of file +}