chore(styles): 添加代码格式化依赖 #12

Manually merged
remilia merged 8 commits from style/prettier into master 2025-09-17 16:58:30 +08:00
4 changed files with 67 additions and 5 deletions
Showing only changes of commit bb89721f1c - Show all commits

View File

@ -3,4 +3,13 @@ import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt( export default withNuxt(
// Your custom configs here // Your custom configs here
{
rules: {
"vue/html-self-closing": ["warn", {
"html": {
"void": "any",
}
}]
}
}
) )

View File

@ -20,7 +20,7 @@ export default {
// 箭头函数参数括号 // 箭头函数参数括号
arrowParens: "always", arrowParens: "always",
// 括号行位置 // 括号行位置
bracketSameLine: true, bracketSameLine: false,
// 换行符使用 lf // 换行符使用 lf
endOfLine: "lf", endOfLine: "lf",
// HTML 空格敏感度 // HTML 空格敏感度
@ -37,6 +37,6 @@ export default {
// 对 SCSS 文件使用双引号 // 对 SCSS 文件使用双引号
files: "*.scss", files: "*.scss",
options: { singleQuote: false }, options: { singleQuote: false },
}, }
], ],
}; };