File tree 4 files changed +4
-7
lines changed
4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"optional" : [
3
3
" es7.objectRestSpread"
4
- ],
5
- "plugins" : [
6
- " object-assign"
7
4
]
8
5
}
Original file line number Diff line number Diff line change 44
44
"babel-core" : " ^5.1.10" ,
45
45
"babel-eslint" : " ^3.0.1" ,
46
46
"babel-loader" : " ^5.0.0" ,
47
- "babel-plugin-object-assign" : " ^1.1.0" ,
48
47
"bootstrap" : " ^3.3.4" ,
49
48
"brfs" : " ^1.4.0" ,
50
49
"chai" : " ^2.2.0" ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const Interpolate = React.createClass({
23
23
this . props . children : this . props . format ;
24
24
let parent = this . props . component ;
25
25
let unsafe = this . props . unsafe === true ;
26
- let props = Object . assign ( { } , this . props ) ;
26
+ let props = { ... this . props } ;
27
27
28
28
delete props . children ;
29
29
delete props . format ;
Original file line number Diff line number Diff line change @@ -304,10 +304,11 @@ const OverlayTrigger = React.createClass({
304
304
const offset = container . tagName === 'BODY' ?
305
305
domUtils . getOffset ( node ) : domUtils . getPosition ( node , container ) ;
306
306
307
- return Object . assign ( { } , offset , {
307
+ return {
308
+ ...offset , // eslint-disable-line object-shorthand
308
309
height : node . offsetHeight ,
309
310
width : node . offsetWidth
310
- } ) ;
311
+ } ;
311
312
}
312
313
} ) ;
313
314
You can’t perform that action at this time.
0 commit comments