From a95ec618d0fa134f6f427490ec62fe0d9849a4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=8C=E5=A0=86=E5=B0=8F=E9=80=8F=E6=98=8E?= Date: Fri, 1 Aug 2025 22:13:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=8D=A2=E8=A1=8C=E5=AF=BC=E8=87=B4=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复换行引起的span前存在空格的问题,由于非html标准标签,导致不能像span一样保持单行,添加忽略即可解决 --- eslint.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index 54ce246..89f578b 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -27,6 +27,15 @@ export default uniHelper({ 'jsdoc/require-returns-description': 'off', 'ts/no-empty-object-type': 'off', 'no-extend-native': 'off', + 'vue/singleline-html-element-content-newline': [ + 'error', + { + ignoreWhenNoAttributes: true, + ignoreWhenEmpty: true, + ignores: ['pre', 'textarea', 'text'], + externalIgnores: [], + }, + ], }, formatters: { /**