Skip to content

Commit 77318cb

Browse files
committed
fix lint errors
1 parent 3541830 commit 77318cb

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

src/scripts/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const ICON_SIZES = ['x-small', 'small', 'medium', 'large'] as const;
2222
const ICON_ALIGNS = ['left', 'right'] as const;
2323

2424
export type ButtonSize = 'x-small' | 'small' | 'medium' | 'large';
25-
export type ButtonIconSize = typeof ICON_SIZES[number];
26-
export type ButtonIconAlign = typeof ICON_ALIGNS[number];
25+
export type ButtonIconSize = (typeof ICON_SIZES)[number];
26+
export type ButtonIconAlign = (typeof ICON_ALIGNS)[number];
2727
export type ButtonIconMoreSize = 'x-small' | 'small' | 'medium' | 'large';
2828

2929
/**

src/scripts/Notification.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const NOTIFICATION_TYPES = ['alert', 'toast'] as const;
77

88
const NOTIFICATION_LEVELS = ['info', 'success', 'warning', 'error'] as const;
99

10-
export type NotificationType = typeof NOTIFICATION_TYPES[number];
11-
export type NotificationLevel = typeof NOTIFICATION_LEVELS[number];
10+
export type NotificationType = (typeof NOTIFICATION_TYPES)[number];
11+
export type NotificationLevel = (typeof NOTIFICATION_LEVELS)[number];
1212

1313
export type NotificationProps = {
1414
type?: NotificationType;

src/scripts/Tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export type TabProps<RendererProps extends TabItemRendererProps> = {
228228
} & TabItemProps<RendererProps>;
229229

230230
export const Tab = <
231-
RendererProps extends TabItemRendererProps = TabItemRendererProps
231+
RendererProps extends TabItemRendererProps = TabItemRendererProps,
232232
>(
233233
props: TabProps<RendererProps>
234234
) => {

src/scripts/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function useControlledValue<T>(value: T | undefined, defaultValue: T) {
1919
const [stateValue, setStateValue] = useState<T>(initValue);
2020
return [typeof value !== 'undefined' ? value : stateValue, setStateValue] as [
2121
T,
22-
typeof setStateValue
22+
typeof setStateValue,
2323
];
2424
}
2525

stories/Datepicker.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ComponentProps, useCallback } from 'react';
1+
import React, { useCallback } from 'react';
22
import dayjs from 'dayjs';
33
import { Datepicker, Button } from '../src/scripts';
44
import { ComponentMeta, ComponentStoryObj } from '@storybook/react';

stories/Pill.stories.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import React from 'react';
2-
import { action } from '@storybook/addon-actions';
3-
import { text, boolean } from '@storybook/addon-knobs';
42
import { Pill } from '../src/scripts';
53
import { ComponentMeta, ComponentStoryObj } from '@storybook/react';
6-
import { containerDecorator } from './util';
74

85
/**
96
*

0 commit comments

Comments
 (0)