Authored by zhangwenxue

chore: add rules to eslint

Showing 1 changed file with 10 additions and 0 deletions
... ... @@ -16,7 +16,17 @@
},
"rules": {
"vue/require-prop-types": "off",
"vue/require-default-prop": "off",
"vue/max-attributes-per-line": "off",
"no-multiple-empty-lines": ["error", {
"max": 1
}],
"object-shorthand": ["error"],
"eqeqeq": ["error", "smart"],
"no-var": ["error"],
"prefer-const": ["error"],
"prefer-object-spread": "error",
"lines-between-class-members": ["error", "never"],
// "vue/max-attributes-per-line": ["error", {
// "singleline": 20,
// "multiline": {
... ...