-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc
48 lines (48 loc) · 1.07 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
{
"env": {
"browser": true,
"es6": true,
"node": false
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
// 0=off, 1=warning (no fail), 2=error (exit code of 1)
"rules": {
"semi": [2, "always"],
"quotes": [2, "double"],
"brace-style": [2, "stroustrup", { "allowSingleLine": false }],
"default-case": 2,
"indent": [2, "tab"],
"new-cap": 0, // for things like Immutable.Map()
"no-catch-shadow": 2,
"no-eq-null": 2,
"no-floating-decimal": 2,
"no-inline-comments": 0,
"no-nested-ternary": 2,
"no-param-reassign": 0,
"quote-props": 0,
"no-self-compare": 2,
"no-throw-literal": 2,
"no-undefined": 0,
"no-void": 2,
"keyword-spacing": 2,
"wrap-iife": [2, "outside"],
"no-underscore-dangle": 0, // Allow leading underscores for method names - REASON: we use underscores to denote private methods
"dot-notation": 0
},
"ecmaFeatures": {
"modules": true,
"blockBindings": true,
"forOf": true,
"jsx": true
},
"plugins": [
"react"
]
}