style: Update Prettier configuration and adjust SCSS formatting (#11885)

- Added iconfont directory to .prettierignore
- Removed jsxBracketSameLine option from .prettierrc.js
- Fixed indentation in common.scss and reset.scss files
This commit is contained in:
KOMATA
2026-02-24 17:03:20 +08:00
committed by GitHub
parent 8b2bcdc814
commit 6f4559c7cd
4 changed files with 4 additions and 5 deletions
+1
View File
@@ -6,3 +6,4 @@
**/*.sh
/public/*
/src/assets/iconfont/**
-2
View File
@@ -17,8 +17,6 @@ module.exports = {
trailingComma: 'all',
// 大括号内的首尾需要空格 { foo: bar }
bracketSpacing: true,
// jsx 标签的反尖括号需要换行
jsxBracketSameLine: false,
// 箭头函数,只有一个参数的时候,也需要括号
arrowParens: 'always',
// 每个文件格式化的范围是文件的全部内容
+2 -2
View File
@@ -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;
}
}
}
}
+1 -1
View File
@@ -27,4 +27,4 @@ body,
.el-alert__title {
display: flex;
align-items: center;
}
}