-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
32 lines (28 loc) · 1.15 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
{
"extends": "airbnb",
"plugins": [
"react"
],
"rules": {
"block-scoped-var": 0, //OK: Doesn't work with ES6
"id-length": 0, //OK: There is no point to disallow declaring variable as short as `x` or `y`.
"no-nested-ternary": 0, //OK: Nested ternary are fine for conditionnal adffectation if indented properly.
"react/no-multi-comp": 0, //OK: Private components can be defined in the same file.
"new-cap": [2, { "capIsNew": false }], //Allow uppercase-started functions to be called without new operator (for ImmutableJS, etc).
"no-use-before-define": [2, "nofunc"], //Allow func to call funcs defined later in order to improve code readability
"no-unused-vars": [2, {"args": "none"}], //Allow unused argument definition in order to keep functions signatures self documented.
"react/sort-comp": [2, {
'order': [
'lifecycle',
'everything-else',
'/^_?(on|handle).+$/',
'render',
'/^_?render.+$/'
]
}],
"quote-props": [2, "as-needed"], //Disallow to quote properties (of object) when it's not requiered.
},
"globals": {
"google": true,
},
}