mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 00:00:50 +00:00
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:
@@ -6,3 +6,4 @@
|
||||
**/*.sh
|
||||
|
||||
/public/*
|
||||
/src/assets/iconfont/**
|
||||
@@ -17,8 +17,6 @@ module.exports = {
|
||||
trailingComma: 'all',
|
||||
// 大括号内的首尾需要空格 { foo: bar }
|
||||
bracketSpacing: true,
|
||||
// jsx 标签的反尖括号需要换行
|
||||
jsxBracketSameLine: false,
|
||||
// 箭头函数,只有一个参数的时候,也需要括号
|
||||
arrowParens: 'always',
|
||||
// 每个文件格式化的范围是文件的全部内容
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,4 @@ body,
|
||||
.el-alert__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user