Parcourir la source

chore: .eslintrc.js

Casper Dai il y a 2 ans
Parent
commit
d0fe8a8ef6
1 fichiers modifiés avec 10 ajouts et 2 suppressions
  1. 10 2
      .eslintrc.js

+ 10 - 2
.eslintrc.js

@@ -29,8 +29,16 @@ module.exports = {
       'singleline': 1,
       'multiline': 1
     }],
-    'vue/singleline-html-element-content-newline': 0,
-    'vue/multiline-html-element-content-newline': 0,
+    'vue/singleline-html-element-content-newline': [2, {
+      'ignoreWhenNoAttributes': true,
+      'ignoreWhenEmpty': true,
+      'ignores': ['pre']
+    }],
+    'vue/multiline-html-element-content-newline': [2, {
+      'ignoreWhenEmpty': true,
+      'allowEmptyLines': false,
+      'ignores': ['pre']
+    }],
     'vue/component-definition-name-casing': [2, 'PascalCase'],
     'vue/no-v-html': 0,
     // 8.17.0