-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
173 lines (173 loc) · 5.2 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"plugins": ["vue"],
"extends": [
"eslint:recommended",
"plugin:vue/recommended"
],
"rules": {
"accessor-pairs": "error",
"array-bracket-newline": ["warn", "consistent"],
"array-bracket-spacing": ["warn", "never"],
"array-callback-return": "error",
"array-element-newline": ["warn", "consistent"],
"arrow-body-style": "error",
"arrow-parens": "warn",
"arrow-spacing": "warn",
"block-spacing": "warn",
"brace-style": ["warn", "stroustrup"],
"camelcase": "warn",
"class-methods-use-this": "error",
"comma-dangle": "warn",
"comma-spacing": "warn",
"comma-style": "warn",
"complexity": ["error", 5],
"computed-property-spacing": "warn",
"consistent-return": "error",
"curly": ["warn", "multi-or-nest", "consistent"],
"default-case": "error",
"dot-location": ["warn", "property"],
"dot-notation": ["warn"],
"eol-last": ["warn", "never"],
"eqeqeq": ["error", "smart"],
"func-call-spacing": "warn",
"function-paren-newline": ["warn", "never"],
"generator-star-spacing": ["warn", "after"],
"global-require": "error",
"implicit-arrow-linebreak": "warn",
"indent": ["warn", 2],
"key-spacing": "warn",
"keyword-spacing": "warn",
"line-comment-position": "warn",
"lines-between-class-members": "warn",
"max-classes-per-file": ["error", 1],
"max-depth": "error",
"max-len": "warn",
"max-params": "error",
"max-statements-per-line": "warn",
"multiline-ternary": ["warn", "always-multiline"],
"new-cap": "error",
"new-parens": "warn",
"newline-per-chained-call": ["warn", {
"ignoreChainWithDepth": 1
}],
"no-alert": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-buffer-constructor": "error",
"no-console": "off",
"no-else-return": "warn",
"no-empty-function": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-extra-parens": "warn",
"no-floating-decimal": "warn",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "error",
"no-mixed-requires": ["warn", {
"grouping": true,
"allowCall": false
}],
"no-multi-assign": "error",
"no-multi-spaces": "warn",
"no-multi-str": "error",
"no-multiple-empty-lines": ["warn", {
"max": 2,
"maxBOF": 0,
"maxEOF": 0
}],
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-path-concat": "error",
"no-process-env": "warn",
"no-process-exit": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-sync": ["error", {
"allowAtRootLevel": true
}],
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "warn",
"no-undef-init": "warn",
"no-underscore-dangle": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "warn",
"no-useless-constructor": "warn",
"no-useless-rename": "error",
"no-useless-return": "warn",
"no-void": "error",
"no-whitespace-before-property": "warn",
"no-with": "error",
"object-curly-newline": "warn",
"object-curly-spacing": "warn",
"object-shorthand": "error",
"one-var": ["error", "never"],
"operator-assignment": "error",
"operator-linebreak": ["warn", "before"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "warn",
"prefer-named-capture-group": "warn",
"prefer-numeric-literals": "error",
"prefer-object-spread": "error",
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quote-props": ["warn", "as-needed"],
"require-await": "error",
"rest-spread-spacing": "warn",
"semi": "error",
"semi-spacing": "warn",
"semi-style": "warn",
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": "warn",
"space-infix-ops": "warn",
"space-unary-ops": "warn",
"spaced-comment": "warn",
"switch-colon-spacing": "warn",
"symbol-description": "error",
"template-curly-spacing": "warn",
"template-tag-spacing": "warn",
"vars-on-top": "warn",
"wrap-iife": ["warn", "inside"],
"yield-star-spacing": ["warn", "after"],
"yoda": "warn"
}
}