浏览代码

HUE-9486 [ui] Fix conflicts with the Vue linter and prettier

This takes care of some conflicting rules leading to unresolvable lint issues.
Johan Ahlen 5 年之前
父节点
当前提交
d66c0c42be
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 13 1
      .eslintrc.js

+ 13 - 1
.eslintrc.js

@@ -74,6 +74,9 @@ module.exports = {
         'plugin:@typescript-eslint/recommended'
       ],
       parser: 'vue-eslint-parser',
+      parserOptions: {
+        parser: "@typescript-eslint/parser"
+      },
       plugins: ['vue', '@typescript-eslint'],
       rules: {
         'vue/max-attributes-per-line': [
@@ -85,7 +88,16 @@ module.exports = {
               allowFirstLine: false
             }
           }
-        ]
+        ],
+        'vue/html-self-closing': [
+          "error",
+          {
+            "html": {
+              "void": "any"
+            }
+          }
+        ],
+        'vue/singleline-html-element-content-newline': 0, // Conflicts with prettier
       }
     },
     {