浏览代码

fix: 修复<text>自动换行导致存在空格的问题

修复换行引起的span前存在空格的问题,由于<text>非html标准标签,导致不能像span一样保持单行,添加忽略即可解决
乌堆小透明 9 月之前
父节点
当前提交
a95ec618d0
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      eslint.config.mjs

+ 9 - 0
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: {
     /**