mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Upgrade to latest for all linting deps (#4755)
* Upgrade to eslint latest Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix OOM error Signed-off-by: Sebastian Malton <sebastian@malton.name> * resolve PR comments Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
2ad78c2a86
commit
38790eb886
35 files changed
+284
-470
No files matched your search
@@ -194,8 +194,7 @@ export class ResizingAnchor extends React.PureComponent<Props> {
|
||||
document.removeEventListener("mouseup", this.onDragEnd);
|
||||
}
|
||||
|
||||
@action
|
||||
onDragInit = (event: React.MouseEvent) => {
|
||||
onDragInit = action((event: React.MouseEvent) => {
|
||||
const { onStart, onlyButtons } = this.props;
|
||||
|
||||
if (typeof onlyButtons === "number" && onlyButtons !== event.buttons) {
|
||||
@@ -209,7 +208,7 @@ export class ResizingAnchor extends React.PureComponent<Props> {
|
||||
|
||||
this.lastMouseEvent = undefined;
|
||||
onStart();
|
||||
};
|
||||
});
|
||||
|
||||
calculateDelta(from: Position, to: Position): number | false {
|
||||
const node = this.ref.current;
|
||||
@@ -285,8 +284,7 @@ export class ResizingAnchor extends React.PureComponent<Props> {
|
||||
}
|
||||
}, 100);
|
||||
|
||||
@action
|
||||
onDragEnd = () => {
|
||||
onDragEnd = action(() => {
|
||||
this.props.onEnd();
|
||||
document.removeEventListener("mousemove", this.onDrag);
|
||||
document.removeEventListener("mouseup", this.onDragEnd);
|
||||
@@ -295,7 +293,7 @@ export class ResizingAnchor extends React.PureComponent<Props> {
|
||||
this.wasDragging = true;
|
||||
|
||||
setTimeout(() => this.wasDragging = false, 200);
|
||||
};
|
||||
});
|
||||
|
||||
render() {
|
||||
const { disabled, direction, placement, onDoubleClick } = this.props;
|
||||
|
||||
Reference in new issue
Block a user