Skip to content

Commit 8598b5b

Browse files
author
Kubit
committed
Update and fix typescript and eslint errors
1 parent e9f842f commit 8598b5b

File tree

99 files changed

+121
-146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+121
-146
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"@eslint/compat": "^1.2.2",
9494
"@eslint/eslintrc": "^3.1.0",
9595
"@eslint/js": "^9.14.0",
96+
"@kubit-ui-web/eslint-plugin-no-index-import": "^1.0.2",
9697
"@storybook/addon-a11y": "^8.4.2",
9798
"@storybook/addon-controls": "^8.4.2",
9899
"@storybook/addon-coverage": "^1.0.4",

src/components/calendar/list/list.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ export const List = ({
131131
}
132132
};
133133

134-
// eslint-disable-next-line complexity
135134
const isGhostSelected = (dayFormatted: Date | 0) => {
136135
if (ghostDateSelected) {
137136
if (ghostDateSelected < selectedDate[0]) {

src/components/calendar/selector/monthSelector/utils/monthSelector.utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export const keyUpMove = ({
5555
maxDate,
5656
minDate,
5757
}: HandleKeyMoveType): ((previous: number) => number) => {
58-
// eslint-disable-next-line complexity
5958
return previous => {
6059
if (isSameYear(maxDate, minDate)) {
6160
if (previous === minDate.getMonth()) {
@@ -91,7 +90,6 @@ export const keyDownMove = ({
9190
maxDate,
9291
minDate,
9392
}: HandleKeyMoveType): ((previous: number) => number) => {
94-
// eslint-disable-next-line complexity
9593
return previous => {
9694
if (isSameYear(maxDate, minDate)) {
9795
if (previous === maxDate.getMonth()) {

src/components/calendar/selector/selector.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
} from './selector.styled';
1818
import { ISelector } from './types/selector';
1919

20-
// eslint-disable-next-line complexity
2120
export const Selector = (props: ISelector): JSX.Element => {
2221
const { dateHelpers, formatDate } = useUtilsProvider();
2322

src/components/calendar/utils/getState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ type getStatePropsType = {
1313
formatDate: (date: Date, format: string) => string;
1414
};
1515

16-
// eslint-disable-next-line complexity
1716
export const getStateDay = ({
1817
dayFormatted,
1918
isSelectedToLeft,

src/components/carousel/carouselStandAlone.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable complexity */
21
import React from 'react';
32

43
import { useId } from '@/hooks/useId/useId';

src/components/carousel/hooks/useCarousel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable complexity */
21
import React from 'react';
32

43
import { useScrollBlock } from '@/hooks/useScrollBlock/useScrollBlock';

src/components/carousel/utils/carousel.utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export const calcNumPages = ({
4848
return numPages;
4949
};
5050

51-
// eslint-disable-next-line complexity
5251
export const getFirstAndLastIndexInCarouselView = ({
5352
elementsLength,
5453
numElementsPerPage,
@@ -107,7 +106,6 @@ export const getFirstAndLastIndexInCarouselView = ({
107106
return { firstIndexInView, lastIndexInView };
108107
};
109108

110-
// eslint-disable-next-line complexity
111109
export const calcNumElementsPerPage = ({
112110
carouselContainer,
113111
carouselContent,

src/components/checkbox/utils/state.utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { CheckboxPropsStateStylesType } from '../types/checkboxTheme';
22
import { CheckboxStateType } from '../types/state';
33

4-
// eslint-disable-next-line complexity
54
const getCheckBoxState = (
65
checked = false,
76
disabled = false,

src/components/confirmationMessage/confirmationMessageStandAlone.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable complexity */
21
import React from 'react';
32

43
import { Text } from '@/components/text/text';

0 commit comments

Comments
 (0)