From bb89721f1c1dc5c65db118c6e04a054f5b5f2148 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Wed, 17 Sep 2025 15:46:39 +0800 Subject: [PATCH] =?UTF-8?q?chore(styles):=20=E8=B0=83=E6=95=B4=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改prettier.config.mjs: 标签换行 - 修改eslint.config.mjs: 允许自闭合标签(如
) --- eslint.config.mjs | 9 +++++++++ prettier.config.mjs | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 934c3a1..03981be 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,4 +3,13 @@ import withNuxt from './.nuxt/eslint.config.mjs' export default withNuxt( // Your custom configs here + { + rules: { + "vue/html-self-closing": ["warn", { + "html": { + "void": "any", + } + }] + } + } ) diff --git a/prettier.config.mjs b/prettier.config.mjs index f52b8fe..e10251b 100644 --- a/prettier.config.mjs +++ b/prettier.config.mjs @@ -20,7 +20,7 @@ export default { // 箭头函数参数括号 arrowParens: "always", // 括号行位置 - bracketSameLine: true, + bracketSameLine: false, // 换行符使用 lf endOfLine: "lf", // HTML 空格敏感度 @@ -37,6 +37,6 @@ export default { // 对 SCSS 文件使用双引号 files: "*.scss", options: { singleQuote: false }, - }, + } ], };