From d49fa0dcd2a4c8f76797f20e15b752050b872aeb Mon Sep 17 00:00:00 2001 From: yma16 <17685043634@163.com> Date: Sat, 16 Jul 2022 17:31:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 6 +- src/components/Login.vue | 186 ++++++++++++++++-------------------- src/components/Register.vue | 4 - 3 files changed, 90 insertions(+), 106 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 22fdce8..bdc018f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,7 @@ module.exports = { extends: [ // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. - 'plugin:vue/essential', + 'plugin:vue/essential', // https://github.com/standard/standard/blob/master/docs/RULES-en.md 'standard' ], @@ -21,6 +21,10 @@ module.exports = { ], // add your custom rules here rules: { + 'indent': [2, 4], // 强制使用一致的缩进 + 'eqeqeq': [2, 'always'], // 要求使用 === 和 !== + 'semi': [2, 'never'], // 要求或禁止使用分号代替 ASI + 'quotes': [2, 'single'] , // allow async-await 'generator-star-spacing': 'off', // allow debugger during development diff --git a/src/components/Login.vue b/src/components/Login.vue index 9fea62b..8b9a4f6 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -1,6 +1,6 @@