This repository has been archived by the owner on Nov 30, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
50 lines (50 loc) · 1.42 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
{
"extends": "airbnb",
"env": {
"jasmine": true,
"jest": true
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"indent": [2, 4, {"SwitchCase": 1}],
"comma-dangle": [2, "never"],
"brace-style": [2, "stroustrup"],
"prefer-arrow-callback": 2,
"prefer-spread": 2,
"object-shorthand": [2, "always"],
"new-cap": [2, {
"newIsCap": true,
"capIsNew": false
}],
"space-before-function-paren": 0,
"no-unused-expressions": [2, {
"allowShortCircuit": true,
"allowTernary": true
}],
"one-var": [2, {
"initialized": "never",
"uninitialized": "always"
}],
"one-var-declaration-per-line": [2, "initializations"],
"func-names": 0,
"object-curly-spacing": [2, "never"],
"max-len": 0,
"react/sort-comp": [2, {
"order": [
"lifecycle",
"render",
"/^render.+$/",
"/^on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"everything-else"
]
}],
"react/jsx-indent-props": [2, 4],
"react/prefer-es6-class": [2, "never"],
"react/jsx-space-before-closing": [2, "never"]
}
}