forked from grommet/grommet-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
41 lines (41 loc) · 1.18 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
{
"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
},
"rules": {
"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
}
}