From e6915d8964f806c637a601f5ae784927cd6ea947 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 29 Jul 2021 01:01:55 +0800 Subject: [PATCH] unexpected space add to router-link due vue/singleline-html-element-content-newline, set it to off --- .eslintrc.js | 1 + src/pages/Dashboard.vue | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 639c6670..3a699223 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,6 +22,7 @@ module.exports = { //semi: ['off', 'never'], "vue/html-indent": ["warn", 4], // default: 2 "vue/max-attributes-per-line": "off", + "vue/singleline-html-element-content-newline": "off", "no-multi-spaces": ["error", { ignoreEOLComments: true, }], diff --git a/src/pages/Dashboard.vue b/src/pages/Dashboard.vue index 7df7ec7d..e0d9a51b 100644 --- a/src/pages/Dashboard.vue +++ b/src/pages/Dashboard.vue @@ -3,16 +3,12 @@
- - Add New Monitor - + Add New Monitor
- No Monitors, please - add one - . + No Monitors, please add one.