-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
58 lines (54 loc) · 1.31 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"classes": true,
"jsx": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},
"plugins": [ "react", "promise" ],
"parser": "babel-eslint",
"rules": {
"array-bracket-spacing": [ 2, "always" ],
"object-curly-spacing": [2, "always"],
"block-spacing": [2, "always"],
"space-in-parens": [2, "always"],
"padded-blocks": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "always"],
"indent": [2, "tab"],
"jsx-quotes": [2, "prefer-double"],
"no-whitespace-before-property": 2,
"semi-spacing": [2, {"before": false, "after": true}],
"space-before-function-paren": [ 2, "always" ],
"arrow-spacing": [2, { "before": true, "after": true }],
"arrow-parens": [2, "always"],
"no-console": 1,
"no-unused-vars": 2,
"promise/param-names": 2,
"promise/always-return": 2,
"promise/catch-or-return": 2,
"react/no-unescaped-entities": 0,
"react/prop-types": 1
},
"globals": {
"Promise": true
},
"settings":{
"react": {
"pragma": "React",
"version": "15.6.1"
}
}
}