Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunghoseo committed Feb 27, 2024
1 parent 6fd35c9 commit 491bfa3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions embedded-components/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
rules: {
'react/react-in-jsx-scope': 'off',
'linebreak-style': 'off',
'arrow-body-style': 'off',
'import/extensions': [
'error',
'ignorePackages',
Expand Down
1 change: 1 addition & 0 deletions embedded-components/src/components/ui/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Alert.displayName = 'Alert';

const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
({ className, ...props }, ref) => (
// eslint-disable-next-line jsx-a11y/heading-has-content
<h5
ref={ref}
className={cn('eb-mb-1 eb-font-medium eb-leading-none eb-tracking-tight', className)}
Expand Down
4 changes: 2 additions & 2 deletions embedded-components/src/components/ui/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
...classNames,
}}
components={{
IconLeft: ({ ...props }) => <ChevronLeft className="eb-h-4 eb-w-4" />,
IconRight: ({ ...props }) => <ChevronRight className="eb-h-4 eb-w-4" />,
IconLeft: ({ ...iconProps }) => <ChevronLeft className="eb-h-4 eb-w-4" {...iconProps} />,
IconRight: ({ ...iconProps }) => <ChevronRight className="eb-h-4 eb-w-4" {...iconProps} />,
}}
{...props}
/>
Expand Down
12 changes: 6 additions & 6 deletions embedded-components/src/components/ui/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ type FormFieldContextValue<

const FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);

type FormItemContextValue = {
id: string;
};

const FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);

const FormField = <
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
Expand Down Expand Up @@ -60,12 +66,6 @@ const useFormField = () => {
};
};

type FormItemContextValue = {
id: string;
};

const FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);

const FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => {
const id = React.useId();
Expand Down

0 comments on commit 491bfa3

Please sign in to comment.