File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
packages/eslint-config-airbnb-base Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 44
44
"homepage" : " https://github.com/airbnb/javascript" ,
45
45
"devDependencies" : {
46
46
"babel-tape-runner" : " ^1.3.1" ,
47
- "eslint" : " ^2.9.0 " ,
47
+ "eslint" : " ^2.10.1 " ,
48
48
"eslint-find-rules" : " ^1.9.2" ,
49
49
"eslint-plugin-import" : " ^1.8.0" ,
50
50
"tape" : " ^4.5.1"
51
51
},
52
52
"peerDependencies" : {
53
- "eslint" : " ^2.9.0 " ,
53
+ "eslint" : " ^2.10.1 " ,
54
54
"eslint-plugin-import" : " ^1.8.0"
55
55
}
56
56
}
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ module.exports = {
41
41
'no-extra-parens' : [ 0 , 'all' , {
42
42
'conditionalAssign' : true ,
43
43
'nestedBinaryExpressions' : false ,
44
+ 'returnAssign' : false ,
44
45
} ] ,
45
46
46
47
// disallow unnecessary semicolons
Original file line number Diff line number Diff line change @@ -83,7 +83,10 @@ module.exports = {
83
83
84
84
// require method and property shorthand syntax for object literals
85
85
// http://eslint.org/docs/rules/object-shorthand
86
- 'object-shorthand' : [ 2 , 'always' ] ,
86
+ 'object-shorthand' : [ 2 , 'always' , {
87
+ 'ignoreConstructors' : false ,
88
+ 'avoidQuotes' : false , // TODO: enable
89
+ } ] ,
87
90
88
91
// suggest using arrow functions as callbacks
89
92
'prefer-arrow-callback' : [ 2 , {
@@ -92,7 +95,10 @@ module.exports = {
92
95
} ] ,
93
96
94
97
// suggest using of const declaration for variables that are never modified after declared
95
- 'prefer-const' : 2 ,
98
+ 'prefer-const' : [ 2 , {
99
+ 'destructuring' : 'any' ,
100
+ 'ignoreReadBeforeAssign' : false , // TODO: make true
101
+ } ] ,
96
102
97
103
// suggest using the spread operator instead of .apply()
98
104
'prefer-spread' : 0 ,
Original file line number Diff line number Diff line change @@ -149,6 +149,13 @@ module.exports = {
149
149
// require padding inside curly braces
150
150
'object-curly-spacing' : [ 2 , 'always' ] ,
151
151
152
+ // enforce "same line" or "multiple line" on object properties.
153
+ // http://eslint.org/docs/rules/object-property-newline
154
+ // TODO: enable when https://github.com/eslint/eslint/issues/5667#issuecomment-219334864 is resolved
155
+ 'object-property-newline' : [ 0 , {
156
+ 'allowMultiplePropertiesPerLine' : true ,
157
+ } ] ,
158
+
152
159
// allow just one var statement per function
153
160
'one-var' : [ 2 , 'never' ] ,
154
161
You can’t perform that action at this time.
0 commit comments