-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc
80 lines (70 loc) · 1.67 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"extends": "eslint-config-airbnb",
"parser": "babel-eslint",
"ecmaFeatures": {
"globalReturn": true,
"experimentalObjectRestSpread": true,
"modules": true,
"classes": true
},
"rules": {
// overrides best practices.js
"curly": [
1,
"all"
],
"eqeqeq": [
2,
"allow-null"
],
// Temporarily disabled due to a possible bug in babel-eslint (todomvc example)
"block-scoped-var": 0,
"wrap-iife": [
2,
"inside"
],
// overrides style.js
"comma-dangle": [
1,
"always-multiline"
],
"indent": [
1,
2,
{
"SwitchCase": 1
}
],
"keyword-spacing": [
1
],
"linebreak-style": [
2,
"unix"
],
"new-cap": [
1
],
"padded-blocks": [ 0 ],
"space-before-blocks": [ 1, "always" ],
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "never"
}
],
// overrides errors.js
"no-console": [ 0 ],
// overrides variables.js
"no-unused-vars": [ 1 ],
"react/prefer-stateless-function": [ 0 ],
"react/prop-types": [ 0 ],
"max-len": [ 1, 150 ],
"consistent-return": [ 0 ],
"prefer-template": [ 0 ],
"no-underscore-dangle": [ 0 ],
"no-plusplus": [ 0 ],
"import/no-extraneous-dependencies": [ 0 ]
}
}