From 303a226ab76b4d6bee8b66f4b7001dab5fc12898 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 22 Apr 2022 00:06:46 +0800 Subject: [PATCH] Update eslint rule --- .eslintrc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 4dae1432..38a16e64 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -40,9 +40,9 @@ module.exports = { SwitchCase: 1, }, ], - quotes: [ "warn", "double" ], + quotes: [ "error", "double" ], semi: "error", - "vue/html-indent": [ "warn", 4 ], // default: 2 + "vue/html-indent": [ "error", 4 ], // default: 2 "vue/max-attributes-per-line": "off", "vue/singleline-html-element-content-newline": "off", "vue/html-self-closing": "off", @@ -72,7 +72,7 @@ module.exports = { "keyword-spacing": "warn", "space-infix-ops": "warn", "arrow-spacing": "warn", - "no-trailing-spaces": "warn", + "no-trailing-spaces": "error", "no-constant-condition": [ "error", { "checkLoops": false, }],