fix: temporarily turn off eslint for **ultra-low quality** code, because I don't have time to fix them one by one

This commit is contained in:
DarkSky
2022-12-22 19:51:47 +08:00
parent 593bb77921
commit b78aa6950c
22 changed files with 47 additions and 23 deletions
+1
View File
@@ -40,6 +40,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
hoverBackground={hoverBackground}
hoverColor={hoverColor}
hoverStyle={hoverStyle}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
type={type}
bold={bold}
+1
View File
@@ -202,6 +202,7 @@ export const StyledButton = styled('button', {
'>span': {
marginLeft: '5px',
},
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
...getButtonColors(theme, type, {
hoverBackground,
@@ -32,6 +32,7 @@ export const TextButton = forwardRef<HTMLButtonElement, ButtonProps>(
hoverBackground={hoverBackground}
hoverColor={hoverColor}
hoverStyle={hoverStyle}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
type={type}
bold={bold}
+2
View File
@@ -108,6 +108,7 @@ export const Popper = ({
onClick: (e: MouseEvent) => {
children.props.onClick?.(e);
if (!hasClickTrigger || visibleControlledByParent) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
onClick?.(e);
return;
@@ -151,6 +152,7 @@ export const Popper = ({
className={popoverClassName}
>
{showArrow && (
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
<PopperArrow placement={placement} ref={setArrowRef} />
)}