-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc
57 lines (54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"parser": "babel-eslint",
"rules": {
"no-alert": 2,
"no-bitwise": 2,
"curly": 2,
"eqeqeq": 2,
"no-eq-null": 2,
"guard-for-in": 2,
"no-empty": 1,
"no-use-before-define": 0,
"no-obj-calls": 2,
"no-unused-vars": 2,
"new-cap": 2,
"no-shadow": 0,
"strict": 2,
"no-invalid-regexp": 2,
"no-comma-dangle": 2,
"no-undef": 2,
"no-new": 2,
"no-extra-semi": 2,
"no-debugger": 2,
"no-caller": 2,
"no-unreachable":2,
"no-underscore-dangle": 0,
"guard-for-in": 0,
"new-cap": 0,
"no-trailing-spaces": 0,
// ES6 Specific Linting
"object-shorthand": [2, "always"],
"generator-star-spacing": [2, "before"],
"no-var": 1,
// Stylistic Issues
"eol-last": 2,
"camelcase": 2,
"comma-style": [2, "last"],
"func-names": 2,
"no-multiple-empty-lines": [2, {"max": 2}],
"no-trailing-spaces": 2,
"semi": 2,
"quotes": 0,
"space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
"space-after-keywords": [2, "always"]
},
"globals": {
"React": true
},
"env":{
"browser": true,
"es6": true,
"node": true,
"mocha": true
}
}