-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
97 lines (86 loc) · 2.17 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"extends": "eslint-config-airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"plugins": [
"prefer-object-spread"
],
"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 ],
"react/jsx-indent": [ 2, 4 ],
"max-len": [ 1, 150 ],
"consistent-return": [ 0 ],
//this allows left handed conditionals, though apparently it is not considered a best practice these days, eslint.org/docs/rules/yoda
"yoda": [ 0 ],
// warns when trying to use Object.assign()
"prefer-object-spread/prefer-object-spread": 2,
"import/no-extraneous-dependencies": [ 0 ],
"import/prefer-default-export": [ 0 ],
"react/forbid-prop-types": [ 0 ]
},
"globals" : {
"__CLIENT__": true
},
"env": {
"browser": true,
"node": true,
"mocha": true
}
}