forked from atanasster/grommet-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
52 lines (52 loc) · 1.45 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",
"extends": "airbnb",
"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,
"fail": true,
"afterEach": true,
"beforeEach": true,
},
"rules": {
"import/prefer-default-export": 0,
"indent": "off",
"indent-legacy": ["error", 2],
"comma-dangle": ["error", "always-multiline"],
"jsx-quotes": ["error", "prefer-single"],
"no-console": 0,
"quote-props": ["error", "consistent"],
"react/forbid-prop-types": 0, // Soft requirement now, try hard requ in future
"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/no-multi-comp": 0, // Soft requirement now, try hard requ in future
"react/prefer-stateless-function": 0, // Soft requirement now, try hard requ in future
"react/no-find-dom-node": 0,
"react/prop-types": 0,
"react/sort-comp": 0,
"react/no-array-index-key": 0,
"import/no-extraneous-dependencies": 0,
"no-alert": 0,
"jsx-a11y/href-no-hash": 0
}
}