-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
146 lines (146 loc) · 4.32 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true
},
"plugins": [
"require-jsdoc-except",
"classes",
"html"
],
"globals": {
"Vue": true,
"Vuex": true
},
"root": true,
"extends": [
"eslint:recommended",
"standard"
],
"rules": {
"for-direction": "error",
"getter-return": "error",
"no-await-in-loop": "error",
"no-empty": [
"error",
{ "allowEmptyCatch": true }
],
"no-empty-function": [
"error",
{ "allow": ["constructors"] }
],
"no-prototype-builtins": "error",
"accessor-pairs": [
"error",
{
"getWithoutSet": false
}
],
"block-scoped-var": "error",
"curly": ["error", "all"],
"class-methods-use-this": "error",
"no-else-return": "error",
"no-eq-null": "error",
"no-extra-label": "error",
"no-implicit-coercion": "error",
"no-invalid-this": "error",
"no-loop-func": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-useless-concat": "error",
"quotes": ["error", "single", "avoid-escape"],
"require-await": "error",
"no-shadow": "error",
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": "error",
"block-spacing": "error",
"computed-property-spacing": "error",
"consistent-this": "error",
"func-style": [
"error",
"expression",
{ "allowArrowFunctions": true }
],
"function-paren-newline": ["error", "never"],
"implicit-arrow-linebreak": ["error"],
"indent": ["error", 4],
"lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"afterBlockComment": false,
"allowBlockStart": true
}
],
"lines-between-class-members": ["error", "always"],
"no-lonely-if": "error",
"no-underscore-dangle": "error",
"object-curly-newline": "error",
"object-curly-spacing": "error",
"object-property-newline": "error",
"operator-linebreak": ["error", "none"],
"quote-props": ["error", "as-needed"],
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"switch-colon-spacing": ["error"],
"arrow-body-style": ["error", "always"],
"arrow-parens": "error",
"no-duplicate-imports": "error",
"no-obj-calls": "error",
"object-shorthand": "error",
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": true,
"allowUnboundThis": true
}
],
"prefer-const": "error",
"prefer-spread": "error",
"rest-spread-spacing": ["error", "never"],
"template-curly-spacing": ["error", "never"],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 5],
"max-depth": ["error", 8],
"complexity": ["error", 10],
"default-case": "warn",
"no-console": [
"warn",
{ "allow": ["warn", "error"] }
],
"no-func-assign": "warn",
"no-inner-declarations": ["warn", "both"],
"no-debugger": "warn",
"no-alert": "warn",
"dot-notation": "warn",
"no-warning-comments": "warn",
"vars-on-top": "warn",
"multiline-comment-style": "warn",
"no-var": "warn",
"prefer-rest-params": "warn",
"valid-jsdoc": [
"error",
{
"prefer": {
"arg": "param",
"argument": "param",
"constructor": "class",
"return": "returns",
"virtual": "abstract"
},
"preferType": {
"Object": "object"
}
}
],
"classes/name": ["error", "class", "method"],
"classes/constructor": "error",
"classes/super": "error",
"classes/style": "error",
"no-new": "off"
}
}