chore: fix some lints automatically (#8788)
* chore: fix some lints automatically Fixed lints that were automatically fixable with `eslint --fix`. * fix type * workaround for empty interface lint
This commit is contained in:
parent
a683a7092d
commit
5e29528ad4
58 changed files with 92 additions and 88 deletions
|
|
@ -63,7 +63,7 @@ const setPosition = () => {
|
|||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calcPosWhenBottom = () => {
|
||||
let left: number;
|
||||
|
|
@ -84,7 +84,7 @@ const setPosition = () => {
|
|||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calcPosWhenLeft = () => {
|
||||
let left: number;
|
||||
|
|
@ -105,7 +105,7 @@ const setPosition = () => {
|
|||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calcPosWhenRight = () => {
|
||||
let left: number;
|
||||
|
|
@ -126,7 +126,7 @@ const setPosition = () => {
|
|||
}
|
||||
|
||||
return [left, top];
|
||||
}
|
||||
};
|
||||
|
||||
const calc = (): {
|
||||
left: number;
|
||||
|
|
@ -172,7 +172,7 @@ const setPosition = () => {
|
|||
}
|
||||
|
||||
return null as never;
|
||||
}
|
||||
};
|
||||
|
||||
const { left, top, transformOrigin } = calc();
|
||||
el.value.style.transformOrigin = transformOrigin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue