-
Notifications
You must be signed in to change notification settings - Fork 42
/
.eslintrc.js
89 lines (89 loc) · 2.49 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:vue/essential",
"standard",
"plugin:vue/vue3-recommended",
"./.eslintrc-auto-import.json"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
"vue/no-v-model-argument":"off",
"vue/no-mutating-props":"off",
"linebreak-style": "off",
"vue/script-setup-uses-vars": "error",
"indent": ["error", 2],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"object-shorthand": ["error", "always"],
"array-bracket-spacing": [
"error",
"always",
{
"objectsInArrays": false,
"arraysInArrays": false
}
],
"array-callback-return": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"camelcase": "error",
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "that"],
"constructor-super": "error",
"curly": "error",
"default-case": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"for-direction": "warn",
"func-call-spacing": ["error", "never"],
"func-names": ["warn", "as-needed"],
"function-paren-newline": ["error", {"minItems": 4}],
"getter-return": ["error", {"allowImplicit": true}],
"guard-for-in": "warn",
"implicit-arrow-linebreak": ["warn", "beside"],
"jsx-quotes": ["error", "prefer-single"],
"key-spacing": ["error", {
"beforeColon": false,
"align": "colon"
}],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"lines-around-comment": ["warn", {"beforeBlockComment": true}],
"new-cap": "warn",
"no-await-in-loop": "error",
"no-buffer-constructor": "error",
"no-cond-assign": "error",
"no-empty": "warn",
"no-constant-condition": "warn",
"vue/no-multiple-template-root": "off",
"n/no-callback-literal":"off",
"vue/multi-word-component-names":"off",
"no-new":"off",
},
"parser": "vue-eslint-parser",
// others ...
"globals": {
"defineProps": "readonly",
"defineEmits": "readonly",
"defineExpose": "readonly",
"withDefaults": "readonly"
}
}