Browse Source

chore: 完善eslint

任一存 3 years ago
parent
commit
7f24c6f3de
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .eslintrc.js

+ 3 - 0
.eslintrc.js

@@ -30,6 +30,9 @@ module.exports = {
     'key-spacing': ["error", {
     'key-spacing': ["error", {
       "mode": "strict"
       "mode": "strict"
     }],
     }],
+    "comma-spacing": ["error", { "before": false, "after": true }],
+    "func-call-spacing": ["error", "never"],
+    "semi-spacing": ["error", {"before": false, "after": true}],
     "indent": ["error", 2],
     "indent": ["error", 2],
     'no-trailing-spaces': 'error',
     'no-trailing-spaces': 'error',
     'no-empty': 'off',
     'no-empty': 'off',