-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc.json
156 lines (155 loc) · 5.16 KB
/
.eslintrc.json
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"env": {
"mocha": true,
"node": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script"
},
"plugins": ["vue"],
"globals": {},
"extends": [
"eslint:recommended",
"plugin:vue/recommended"
],
"rules": {
"no-await-in-loop": "warn",
"no-template-curly-in-string": "warn",
"require-atomic-updates": "error",
"array-callback-return": "warn",
"block-scoped-var": "error",
"complexity": ["warn", 6],
"dot-notation": "error",
"dot-location": ["error", "property"],
"eqeqeq": ["error", "always"],
"guard-for-in": "error",
"max-classes-per-file": ["error", 6],
"no-alert": "error",
"no-caller": "error",
"no-empty-function": "warn",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-floating-decimal": "warn",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error",
"no-multi-spaces": "warn",
"no-multi-str": "error",
"no-new": "warn",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "warn",
"no-script-url": "error",
"no-self-compare": "warn",
"no-sequences": "error",
"no-throw-literal": "warn",
"no-unused-expressions": "warn",
"no-unused-vars": ["error", { "args": "none" }],
"no-useless-call": "error",
"no-useless-concat": "warn",
"no-useless-return": "warn",
"no-void": "error",
"no-with": "error",
"prefer-promise-reject-errors": "off",
"yoda": "warn",
"strict": ["error", "global"],
"no-shadow": "warn",
"no-use-before-define": "warn",
"no-new-require": "error",
"array-bracket-newline": ["warn", "never"],
"array-bracket-spacing": ["warn", "never"],
"array-element-newline": ["warn", "never"],
"block-spacing": "warn",
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["warn", "never"],
"comma-spacing": "warn",
"comma-style": ["warn", "last"],
"computed-property-spacing": ["warn", "never"],
"func-call-spacing": ["warn", "never"],
"func-style": ["error", "declaration"],
"function-paren-newline": ["error", "never"],
"implicit-arrow-linebreak": ["error", "beside"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": ["error", {
"before": true
}],
"lines-between-class-members": ["error", "always"],
"max-depth": ["error", 6],
"max-len": ["warn", 300],
"max-lines": ["warn", 300],
"max-nested-callbacks": ["error", 4],
"max-params": ["error", 4],
"new-cap": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-continue": "error",
"no-lonely-if": "warn",
"no-mixed-operators": "error",
"no-multi-assign": "error",
"no-multiple-empty-lines": "warn",
"no-nested-ternary": "warn",
"no-new-object": "error",
"no-trailing-spaces": "warn",
"no-underscore-dangle": ["error", {
"allowAfterThis": true,
"allowAfterSuper": true
}],
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "error",
"space-before-blocks": "warn",
"object-curly-spacing": ["warn", "never"],
"object-property-newline": "warn",
"operator-linebreak": ["error", "after"],
"padded-blocks": ["error", "never"],
"semi-spacing": "warn",
"semi": ["error", "always"],
"space-before-function-paren": ["warn", "never"],
"switch-colon-spacing": "error",
"arrow-spacing": "error",
"prefer-template": "error",
"prefer-arrow-callback": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "warn",
"space-infix-ops": "warn",
"no-var": "error",
"prefer-const": "warn",
"vue/no-v-html": "off",
"vue/max-attributes-per-line": "off",
"vue/attributes-order": "off",
"vue/attribute-hyphenation": "off",
"vue/html-indent": ["error", 4, {
"attribute": 1,
"closeBracket": 0,
"ignores": []
}],
"vue/mustache-interpolation-spacing": ["warn", "never"],
"vue/singleline-html-element-content-newline": "off",
"vue/html-self-closing": [
"error",
{
"html": {
"void": "never",
"normal": "never",
"component": "never"
},
"svg": "never",
"math": "never"
}
],
"vue/custom-event-name-casing": "off"
}
}