-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
224 lines (217 loc) · 6.21 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
{
"parser": "babel-eslint",
"plugins": [
"react",
"import",
"jsx-a11y",
"mocha",
"red",
"prettier"
],
"extends": ["eslint:recommended", "airbnb", "prettier", "prettier/react"],
"rules": {
"prettier/prettier": ["error", {
"printWidth": 160,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": true
}],
"arrow-parens": [2, "as-needed"],
"red/no-just-wait": 2,
"red/no-driver": 2,
"red/no-click": 2,
"red/no-find-element": 2,
"red/no-lodash": 2,
"red/dal-async": 2,
"red/no-moment": 2,
"mocha/no-exclusive-tests": 2,
"eqeqeq": [2, "smart"],
"curly": 2,
"quotes": [2, "single", "avoid-escape"],
"strict": 0,
"no-unused-expressions": 0,
"no-underscore-dangle": 0,
"no-spaced-func" : 0,
"func-names": 2,
"no-shadow": 2,
"camelcase": 2,
"new-cap": [2, {"capIsNewExceptions": ["Then", "When", "Given", "AfterFeatures", "After", "BeforeFeatures", "Before", "BeforeFeature"]}],
"dot-notation": 2,
"no-native-reassign": 1,
"react/require-extension": 0,
"no-new": 1,
"no-confusing-arrow": [0, {"allowParens": true}],
"no-console": 0,
"no-constant-condition": 1,
"object-curly-spacing": 2,
"consistent-return": 2,
"jsx-quotes": 1,
"newline-per-chained-call": 0,
"no-extra-strict": 0,
"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 0,
"no-multi-str": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
"no-process-exit": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-undef": 2,
"no-shadow-restricted-names": 2,
"no-trailing-spaces": 2,
"quote-props": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 2,
"template-curly-spacing": 0,
"no-undef-init": 2,
"id-length": 0,
"no-use-before-define": 2,
"no-with": 2,
"comma-spacing": 2,
"eol-last": 2,
"padded-blocks": 0,
"no-extra-parens": [2, "functions"],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"new-parens": 2,
"semi": 2,
"semi-spacing": [2, {"before": false, "after": true}],
"space-infix-ops": 2,
"keyword-spacing": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"yoda": [2, "never"],
"indent": 0,
"vars-on-top": 0,
"max-len": 0,
"no-param-reassign": 0,
"arrow-body-style": 2,
"brace-style": 2,
"prefer-template": 2,
"computed-property-spacing": 1,
"space-in-parens": 1,
"no-useless-constructor": 2,
"prefer-rest-params": 2,
"array-bracket-spacing": 1,
"no-case-declarations": 2,
"array-callback-return": 2,
"prefer-const": 2,
"global-require": 2,
"no-useless-escape": 2,
"no-duplicate-imports": [2, { "includeExports": true }],
"import/no-duplicates": [0, { "commonjs": true }],
"import/no-unresolved": [0, { "commonjs": true }],
"import/export": 1,
"jsx-a11y/img-has-alt": 0,
"react/jsx-equals-spacing": [1, "never"],
"react/display-name": 0,
"react/jsx-no-undef": 1,
"react/jsx-no-bind": 2,
"react/jsx-curly-spacing": [0, "always"],
"react/jsx-first-prop-new-line": [0, "never"],
"react/jsx-indent": [0, 2],
"react/jsx-boolean-value": 0,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/jsx-closing-bracket-location": 0,
"react/jsx-space-before-closing": 2,
"react/no-multi-comp": 1,
"react/no-unknown-property": 1,
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 2,
"react/sort-comp": 0,
"react/wrap-multilines": 0,
"react/jsx-indent-props": 0,
"react/prefer-stateless-function": 1,
"generator-star-spacing": 0,
"import/no-extraneous-dependencies": 0,
"linebreak-style": 2,
"import/imports-first": 0,
"react/no-string-refs": 0,
"react/jsx-filename-extension": 0,
"react/jsx-wrap-multilines": 0,
"no-mixed-operators": 0,
"import/prefer-default-export": 0,
"import/newline-after-import": 0,
"require-yield": 1,
"no-extra-boolean-cast": 2,
"no-continue": 2,
"object-property-newline": 1,
"no-prototype-builtins": 2,
"operator-assignment": 2,
"jsx-a11y/label-has-for": 2,
"react/no-find-dom-node": 2,
"no-lonely-if": 2,
"dot-location": 2,
"import/no-named-as-default": 1,
"prefer-spread": 1,
"react/no-array-index-key": 2,
"react/jsx-no-duplicate-props": 2,
"react/no-children-prop": 2,
"react/style-prop-object": 2,
"no-restricted-syntax": [2, "WithStatement"],
"no-unused-vars": [2, { "vars": "all", "args": "after-used", "varsIgnorePattern": "_", "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
"no-template-curly-in-string": 2,
"no-bitwise": 2,
"valid-typeof": 2,
"jsx-a11y/anchor-has-content": 2,
"comma-dangle": [2, "always-multiline"],
"import/first": 0,
"import/extensions": 0,
"react/require-default-props": 0,
"react/forbid-prop-types": 0,
"react/no-unused-prop-types": 0,
"no-return-await": 0,
"no-plusplus": 0,
"no-tabs": 0,
"class-methods-use-this": 0,
"no-await-in-loop": 0,
"react/no-unescaped-entities": 0,
"jsx-a11y/no-static-element-interactions": 0,
"import/no-dynamic-require": 0,
"space-before-function-paren": 0,
"func-call-spacing": 0,
"lines-around-directive": 0,
"no-multi-assign": 0,
"no-useless-return": 0,
"react/no-danger": 0,
"require-await": 0
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"ecmaFeatures": {
"jsx" : true,
"modules": true
},
"globals": {
"__MOBX_DEVTOOLS__": true,
"__DEVTOOLS__": true,
"socket": true,
"jest": true,
"expect": true
}
}