diff --git a/.eslintrc.js b/.eslintrc.js index 22fdce865a3c3aef46d5aaaa19ab33907ca07da1..bdc018fdd27400a66c7bb02ebf3f5a16634b0ea5 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 9fea62bc9e8cc2782e327e81de0c2e05715dcdc8..8b9a4f6b207abfe826d8aec1933563eced79311c 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -1,6 +1,6 @@