File tree 4 files changed +805
-242
lines changed 4 files changed +805
-242
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : [" plugin:shopify/react" ],
2
+ "extends" : [" plugin:shopify/react" , " plugin:prettier/recommended " ],
3
3
"rules" : {
4
4
"no-process-env" : " off" ,
5
5
"no-lonely-if" : " off" ,
Original file line number Diff line number Diff line change 72
72
"babel-plugin-transform-async-to-promises" : " ^0.8.4" ,
73
73
"classnames" : " ^2.2.5" ,
74
74
"css-loader" : " ^2.1.0" ,
75
- "eslint" : " ^5.16.0" ,
76
- "eslint-plugin-shopify" : " ^27.0.1" ,
75
+ "eslint" : " ^6.2.1" ,
76
+ "eslint-config-prettier" : " ^6.1.0" ,
77
+ "eslint-plugin-prettier" : " ^3.1.0" ,
78
+ "eslint-plugin-shopify" : " ^30.0.1" ,
77
79
"extract-text-webpack-plugin" : " ^1.0.1" ,
78
80
"html-webpack-plugin" : " ^2.16.1" ,
79
- "husky" : " ^1.3.1 " ,
81
+ "husky" : " ^3.0.4 " ,
80
82
"lodash" : " ^4.12.0" ,
81
83
"node-sass" : " ^4.11.0" ,
82
84
"postcss" : " ^7.0.7" ,
83
85
"postcss-loader" : " ^3.0.0" ,
84
- "prettier" : " ^1.15.3 " ,
85
- "pretty-quick" : " ^1.8.0 " ,
86
+ "prettier" : " ^1.18.2 " ,
87
+ "pretty-quick" : " ^1.11.1 " ,
86
88
"react" : " ^16.7.0" ,
87
89
"react-addons-pure-render-mixin" : " ^15.0.2" ,
88
90
"react-addons-shallow-compare" : " ^15.1.0" ,
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ export default function sortableContainer(
41
41
42
42
validateProps ( props ) ;
43
43
44
- this . state = { } ;
45
44
this . manager = new Manager ( ) ;
46
45
this . events = {
47
46
end : this . handleEnd ,
@@ -50,6 +49,8 @@ export default function sortableContainer(
50
49
} ;
51
50
}
52
51
52
+ state = { } ;
53
+
53
54
static displayName = provideDisplayName ( 'sortableList' , WrappedComponent ) ;
54
55
static defaultProps = defaultProps ;
55
56
static propTypes = propTypes ;
@@ -332,11 +333,11 @@ export default function sortableContainer(
332
333
height : containerHeight ,
333
334
} = useWindowAsScrollContainer
334
335
? {
335
- top : 0 ,
336
- left : 0 ,
337
- width : this . contentWindow . innerWidth ,
338
- height : this . contentWindow . innerHeight ,
339
- }
336
+ top : 0 ,
337
+ left : 0 ,
338
+ width : this . contentWindow . innerWidth ,
339
+ height : this . contentWindow . innerHeight ,
340
+ }
340
341
: this . containerBoundingRect ;
341
342
const containerBottom = containerTop + containerHeight ;
342
343
const containerRight = containerLeft + containerWidth ;
You can’t perform that action at this time.
0 commit comments