-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
234 lines (234 loc) · 7.37 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
"parser": "babel-eslint",
"plugins": ["react", "import", "promise", "jsx-a11y"],
"extends": ["eslint:all", "plugin:react/all", "plugin:jsx-a11y/recommended"],
"globals": {},
"env": {
"amd": true,
"es6": true,
"node": true,
"mongo": true,
"jquery": true,
"browser": true,
"jasmine": true,
"phantomjs": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": { "jsx": true }
},
"rules": {
"array-bracket-newline": 0,
"array-element-newline": [0, { "multiline": true }],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"capitalized-comments": [2, "always", {
"ignoreConsecutiveComments": true
}],
"class-methods-use-this": 0,
"comma-dangle": [2, "always-multiline"],
"consistent-this": [2, "self"],
"dot-location": [2, "property"],
"func-names": 0,
"generator-star-spacing": [2, { before: false, after: true }],
"global-require": 0,
"id-match": 0,
"indent": [2, 2, { "SwitchCase": 1 }],
"init-declarations": [0, "never", { "ignoreForLoopInit": true }],
"jsx-quotes": [2, "prefer-single"],
"keyword-spacing": [2, {
"before": false,
"after": false,
"overrides": {
"switch": { "before": false, "after": false },
"import": { "before": false, "after": true },
"export": { "before": false, "after": true },
"return": { "before": false, "after": true },
"const": { "before": false, "after": true },
"case": { "before": false, "after": true },
"from": { "before": true, "after": true },
"let": { "before": false, "after": true },
"of": { "before": true, "after": true },
"as": { "before": true, "after": true }
}
}],
"lines-around-comment": [2, {
"beforeBlockComment": false,
"afterBlockComment": false,
"beforeLineComment": false,
"afterLineComment": false,
"allowBlockStart": false,
"allowBlockEnd": false,
"allowObjectStart": true,
"allowObjectEnd": false,
"allowArrayStart": true,
"allowArrayEnd": false
}],
"max-depth": [2, 5],
"max-len": [2, 80, 2, {
"ignoreComments": true,
"ignorePattern": "(((ex|im)port( |\\().*)|(<Route .*))",
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreUrls": true
}],
"max-lines": 0,
"max-nested-callbacks": [2, 5],
"max-params": [2, 4],
"max-statements": [0, 10],
"max-statements-per-line": [2, { "max": 2 }],
"multiline-ternary": 0,
"newline-per-chained-call": 0,
"no-bitwise": 0,
"no-case-declarations": 0,
"no-confusing-arrow": [2, { "allowParens": true }],
"no-console": 0,
"no-continue": 0,
"no-empty-function": [2, { "allow": ["arrowFunctions"] }],
"no-extend-native": 0,
"no-extra-parens": 0,
"no-implicit-coercion": 0,
"no-inline-comments": 0,
"no-magic-numbers": 0,
"no-mixed-requires": 0,
"no-negated-condition": 0,
"no-param-reassign": [0, { "props": false }],
"no-plusplus": [0, { "allowForLoopAfterthoughts": true }],
"no-process-env": 0,
"no-process-exit": 0,
"no-redeclare": [2, { "builtinGlobals": true }],
"no-restricted-modules": [2, ""],
"no-restricted-syntax": [2, "WithStatement"],
"no-return-assign": 0,
"no-shadow": 0,
"no-ternary": 0,
"no-undef": [2, { "typeof": true }],
"no-underscore-dangle": 0,
"no-unused-expressions": [2, {
"allowShortCircuit": true,
"allowTernary": true
}],
"no-warning-comments": 0,
"object-curly-newline": [0, {
"ObjectExpression": "always",
"ObjectPattern": { "multiline": true }
}],
"object-curly-spacing": [2, "always"],
"object-property-newline": [2, { "allowMultiplePropertiesPerLine": true }],
"one-var": [2, {
"var": "always",
"let": "always",
"const": "never"
}],
"one-var-declaration-per-line": 0,
"operator-linebreak": [2, "after"],
"padding-line-between-statements": 0,
"padded-blocks": [2, "never"],
"prefer-reflect": 0,
"prefer-spread": 0,
"quote-props": [2, "as-needed"],
"quotes": [2, "single"],
"require-jsdoc": [2, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}],
"semi-style": 0,
"sort-imports": 0,
"sort-keys": 0,
"sort-vars": 0,
"space-after-keywords": [0, "never"],
"space-before-blocks": [0, "never"],
"space-before-function-paren": [0, "never"],
"space-before-keywords": [0, "never"],
"space-in-parens": [0, "never"],
"spaced-comment": [2, "always"],
"strict": [2, "never"],
"switch-colon-spacing": 0,
"valid-jsdoc": [2, { "requireReturnDescription": false }],
"wrap-iife": [2, "inside"],
"wrap-regex": 0,
"yoda": [2, "never", {
"exceptRange": true,
"onlyEquality": true
}],
"react/display-name": 0,
"react/forbid-component-props": 0,
"react/forbid-foreign-prop-types": 0,
"react/forbid-prop-types": 0,
"react/prop-types": [2, { "skipUndeclared": true }],
"react/require-default-props": 0,
"react/require-optimization": [2, { allowDecorators: ["pure"] }],
"react/no-set-state": 0,
"react/sort-prop-types": [0, {
"callbacksLast": true,
"requiredFirst": true,
"ignoreCase": false
}],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-filename-extension": [2, {
"extensions": [".js", ".jsx"]
}],
"react/jsx-first-prop-new-line": 0,
"react/jsx-handler-names": 0,
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-max-props-per-line": [2, { "maximum": 5 }],
"react/jsx-no-bind": 0,
"react/jsx-no-literals": 0,
"react/jsx-sort-props": [0, {
"callbacksLast": true,
"shorthandFirst": true,
"ignoreCase": false
}],
"react/jsx-tag-spacing": [2, {
"closingSlash": "never",
"beforeSelfClosing": "never",
"afterOpening": "never"
}],
"import/default": 2,
"import/export": 2,
"import/extensions": 0,
"import/first": 2,
"import/prefer-default-export": 0,
"import/max-dependencies": 0,
"import/named": 2,
"import/namespace": [2, { "allowComputed": true }],
"import/newline-after-import": 2,
"import/no-absolute-path": 2,
"import/no-amd": 2,
"import/no-commonjs": 2,
"import/no-deprecated": 2,
"import/no-duplicates": 2,
"import/no-dynamic-require": 2,
"import/no-extraneous-dependencies": 2,
"import/no-internal-modules": 0,
"import/no-mutable-exports": 2,
"import/no-named-as-default": 2,
"import/no-named-as-default-member": 2,
"import/no-named-default": 2,
"import/no-namespace": 0,
"import/no-nodejs-modules": 0,
"import/no-restricted-paths": 2,
"import/no-unassigned-import": 2,
"import/no-unresolved": 0,
"import/no-webpack-loader-syntax": 2,
"import/order": 0,
"import/unambiguous": 2,
"promise/always-return": 2,
"promise/avoid-new": 0,
"promise/catch-or-return": 2,
"promise/param-names": 2,
"promise/prefer-await-to-then": 0,
"promise/prefer-await-to-callbacks": 2,
"promise/no-callback-in-promise": 2,
"promise/no-native": 0,
"promise/no-nesting": 2,
"promise/no-promise-in-callback": 2,
"promise/no-return-wrap": 2,
"jsx-a11y/lang": 2,
"jsx-a11y/no-static-element-interactions": 0
}
}