Skip to content

Commit 9ccbaa8

Browse files
author
Kubit
committed
Fix eslint errors
1 parent 3d2b006 commit 9ccbaa8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/components/actionBottomSheet/actionBottomSheetControlled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const ActionBottomSheetControlledComponent = React.forwardRef(
8585
ref: React.ForwardedRef<HTMLDivElement> | undefined | null
8686
): JSX.Element => {
8787
const uniqueTitleId = useId('actionSheet-title');
88-
const titleId = title?.id ?? title?.content ? uniqueTitleId : undefined;
88+
const titleId = (title?.id ?? title?.content) ? uniqueTitleId : undefined;
8989
const styles = useStyles<ActionBottomSheetVariantStylesType>(
9090
STYLES_NAME.ACTION_BOTTOM_SHEET,
9191
props.variant,

src/components/badgeV2/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export type {
55
IBadge as IBadgeV2,
66
BadgeVariantStylesType as BadgeVariantStylesTypeV2,
77
BadgeStylesType as BadgeStylesTypeV2,
8-
BadgeState as BadgeStateV2,
98
} from './types';
109

10+
// enums
11+
export { BadgeState as BadgeStateV2 } from './types';
12+
1113
export { Badge as BadgeV2 } from './badge';

src/components/navigationCard/navigationCardStandAlone.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ const NavigationCardStandaloneComponent = (
3636
return (
3737
// Can not be spread -> styled component breaks
3838
<NavigationCardStyled
39-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
40-
ref={ref as any}
39+
ref={ref as React.ForwardedRef<HTMLButtonElement>}
4140
aria-disabled={props['aria-disabled']}
4241
as={props.url ? props.component : 'button'}
4342
className={props.className}

src/constants/keyboardKeys.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ const ARROW_DOWN = {
6767

6868
const DELETE = {
6969
key: 'Delete',
70-
which: 46,
71-
keyCode: 46,
70+
which: 8 || 46,
71+
keyCode: 8 || 46,
7272
code: 'ArrowDecimal',
7373
};
7474

src/storybook/components/icons/icons.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { IconNameStyled, IconsDataStyled, IconsInputStyled, IconsStyled } from '
1010
export const Icons = (): JSX.Element => {
1111
const [searchValue, setSearchValue] = React.useState('');
1212

13-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
1413
const theme = localStorage.getItem('themeSelected') || 'kubit';
1514
const themeObject = themesObject[theme]['ICONS'];
1615

0 commit comments

Comments
 (0)