style: 格式化项目代码

- 根据prettier配置格式化整个项目的代码
This commit is contained in:
2025-09-17 15:50:29 +08:00
parent bb89721f1c
commit 359aaec8a9
43 changed files with 1900 additions and 1878 deletions

View File

@ -14,29 +14,29 @@ export default {
// 使用单引号
singleQuote: true,
// 尾随逗号
trailingComma: "es5",
trailingComma: 'es5',
// 对象大括号内的空格
bracketSpacing: true,
// 箭头函数参数括号
arrowParens: "always",
arrowParens: 'always',
// 括号行位置
bracketSameLine: false,
// 换行符使用 lf
endOfLine: "lf",
endOfLine: 'lf',
// HTML 空格敏感度
htmlWhitespaceSensitivity: "css",
htmlWhitespaceSensitivity: 'css',
// Vue 文件脚本和样式缩进
vueIndentScriptAndStyle: true,
overrides: [
{
// 对 CSS 文件使用双引号
files: "*.css",
files: '*.css',
options: { singleQuote: false },
},
{
// 对 SCSS 文件使用双引号
files: "*.scss",
files: '*.scss',
options: { singleQuote: false },
}
},
],
};