-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc
52 lines (52 loc) · 1.4 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
{
"parser": "@babel/eslint-parser",
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"env": {
"node": true,
"es6": true
},
"globals": {
"it": true,
"expect": true,
"describe": true,
"jest": true,
"document": true,
"test": true,
"window": true,
"fetch": true,
"WebSocket": true,
"alert": true,
"URLSearchParams": true,
"defaultProps": true,
"childContextTypes": true,
"contextTypes": true,
"state": true,
"Event": true,
"afterEach": true
},
"rules": {
"indent": "off",
"indent-legacy": ["error", 2],
"comma-dangle": ["error", "always-multiline"],
"no-console": 0,
"quote-props": ["error", "consistent"],
"react/forbid-prop-types": 0,
"react/function-component-definition": [1, {"namedComponents": "arrow-function" }],
"react/jsx-boolean-value": [1, "always"],
"react/jsx-filename-extension": 0,
"react/jsx-first-prop-new-line": [1, "multiline"],
"react/jsx-max-props-per-line": [1, { "when": "multiline" }],
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/no-multi-comp": 0,
"react/prefer-stateless-function": 0,
"react/no-find-dom-node": 0,
"react/prop-types": 0,
"react/sort-comp": 0,
"import/no-extraneous-dependencies": 0,
"no-alert": 0,
"jsx-a11y/href-no-hash": 0,
"import/prefer-default-export": 0
}
}