chore: strict eslint check (#1084)

This commit is contained in:
Himself65
2023-02-17 01:33:32 -06:00
committed by GitHub
parent 191c36c6fb
commit 5e6366ba44
213 changed files with 1080 additions and 1886 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import { cloneElement, Children, forwardRef } from 'react';
import { StyledButton } from './styles';
import { Children, cloneElement, forwardRef } from 'react';
import { ButtonProps } from './interface';
import { getSize } from './utils';
import { Loading } from './Loading';
import { StyledButton } from './styles';
import { getSize } from './utils';
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
(
@@ -1,11 +1,12 @@
import {
HTMLAttributes,
cloneElement,
ReactElement,
Children,
cloneElement,
CSSProperties,
forwardRef,
HTMLAttributes,
ReactElement,
} from 'react';
import { StyledIconButton } from './styles';
const SIZE_SMALL = 'small' as const;
@@ -1,7 +1,7 @@
import { cloneElement, Children, forwardRef } from 'react';
import { StyledTextButton } from './styles';
import { Children, cloneElement, forwardRef } from 'react';
import { ButtonProps } from './interface';
import { StyledTextButton } from './styles';
import { getSize } from './utils';
export const TextButton = forwardRef<HTMLButtonElement, ButtonProps>(
+1 -1
View File
@@ -1,3 +1,3 @@
export * from './IconButton';
export * from './Button';
export * from './IconButton';
export * from './TextButton';
+3 -2
View File
@@ -1,7 +1,8 @@
import { absoluteCenter, displayInlineFlex, styled } from '../../styles';
import { CSSProperties } from 'react';
import { absoluteCenter, displayInlineFlex, styled } from '../../styles';
import { ButtonProps } from './interface';
import { getSize, getButtonColors } from './utils';
import { getButtonColors, getSize } from './utils';
export const StyledIconButton = styled('button', {
shouldForwardProp: prop => {
+3 -3
View File
@@ -1,9 +1,9 @@
import { AffineTheme } from '../../styles';
import {
SIZE_SMALL,
SIZE_MIDDLE,
SIZE_DEFAULT,
ButtonProps,
SIZE_DEFAULT,
SIZE_MIDDLE,
SIZE_SMALL,
} from './interface';
// TODO: Designer is not sure about the size, Now, is just use default size