Skip to content

Commit a7afb35

Browse files
committed
chore(pkg): update & dedupe packages
1 parent ae115fa commit a7afb35

4 files changed

Lines changed: 189 additions & 158 deletions

File tree

.flowconfig

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[version]
2-
^0.110.0
2+
^0.126.0
33

44
[ignore]
55
.*/node_modules/@babel.*
@@ -11,6 +11,10 @@
1111

1212
[libs]
1313

14+
[lints]
15+
all=warn
16+
implicit-inexact-object=error
17+
1418
[options]
1519
suppress_comment=\\(.\\|\n\\)*\\s*\\$FlowFixMe.*
1620
suppress_comment=\\(.\\|\n\\)*\\s*\\$FlowBug.*
@@ -23,7 +27,7 @@ esproposal.class_instance_fields=enable
2327
esproposal.decorators=ignore
2428
esproposal.export_star_as=enable
2529
experimental.strict_call_arity=true
26-
module.system.node.resolve_dirname=node_modules
27-
module.system.node.resolve_dirname=.
30+
module.system.node.allow_root_relative=true
2831
module.use_strict=true
2932
server.max_workers=6
33+
exact_by_default=true

lib/propTypes.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ import type {Element as ReactElement} from 'react';
55

66
export type Axis = 'both' | 'x' | 'y' | 'none';
77
export type ResizeHandle = 's' | 'w' | 'e' | 'n' | 'sw' | 'nw' | 'se' | 'ne';
8-
export type ResizableState = {
8+
export type ResizableState = {|
99
slackW: number, slackH: number
10-
};
11-
export type ResizableBoxState = {
10+
|};
11+
export type ResizableBoxState = {|
1212
width: number, height: number,
1313
propsWidth: number, propsHeight: number
14-
}
15-
export type DragCallbackData = {
14+
|};
15+
export type DragCallbackData = {|
1616
node: HTMLElement,
1717
x: number, y: number,
1818
deltaX: number, deltaY: number,
1919
lastX: number, lastY: number
20-
};
21-
export type ResizeCallbackData = {
20+
|};
21+
export type ResizeCallbackData = {|
2222
node: HTMLElement,
23-
size: {width: number, height: number},
23+
size: {|width: number, height: number|},
2424
handle: ResizeHandle
25-
};
26-
export type Props = {
25+
|};
26+
export type Props = {|
2727
axis: Axis,
2828
children: ReactElement<any>,
2929
className?: ?string,
@@ -40,7 +40,7 @@ export type Props = {
4040
resizeHandles: ResizeHandle[],
4141
transformScale: number,
4242
width: number,
43-
};
43+
|};
4444

4545
export const resizableProps = {
4646
/*

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
"@babel/preset-react": "^7.0.0",
4444
"babel-eslint": "^10.0.3",
4545
"babel-loader": "^8.0.6",
46-
"cross-env": "^6.0.3",
46+
"cross-env": "^7.0.2",
4747
"css-loader": "^3.2.0",
4848
"enzyme": "^3.11.0",
4949
"enzyme-adapter-react-16": "^1.15.2",
50-
"eslint": "^6.5.1",
50+
"eslint": "^7.2.0",
5151
"eslint-plugin-react": "^7.16.0",
52-
"flow-bin": "^0.110.0",
52+
"flow-bin": "^0.126.1",
5353
"jest": "^26.0.1",
5454
"lodash": "^4.17.15",
5555
"pre-commit": "^1.1.2",

0 commit comments

Comments
 (0)