Skip to content

Commit 2c636f8

Browse files
committed
trivial. Patch for eslint and prettier
1 parent 9a5ea2e commit 2c636f8

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

src/components/data-container/data-grid/TDataGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const TDataGrid = forwardRef(
4848
...restProps,
4949
};
5050

51-
const [selectedRows, setSelectedRows] = useState<any>([]);
51+
const [selectedRows, setSelectedRows] = useState<unknown[]>([]);
5252

5353
const gridRef = useRef<AgGridReact>(null);
5454

src/components/data-container/drop-holder/TDropHolder.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type DropHolderAlignment =
1111
| 'bottom-right';
1212

1313
export interface TDropHolderItem {
14-
[key: string]: any;
14+
[key: string]: unknown;
1515
disabled?: boolean;
1616
onClick?: (event?: MouseEvent) => void;
1717
divideSection?: boolean;

src/components/input/chip/TChip.interface.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import type {TBaseProps} from '@/common/base/TBase.interface';
55

66
import type {TIconSize} from '~/icon';
77

8-
const chipType = ['outlined', 'fill'] as const;
9-
type chipType = (typeof chipType)[number];
8+
type chipType = ['outlined', 'fill'][number];
109

1110
export interface TChipProps extends TBaseProps {
1211
children?: ReactNode;

src/components/input/dropdown/TDropdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const TDropdown = forwardRef(
8888
}, []);
8989

9090
const modifyValue = useCallback(
91+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9192
(newItem: any): void => {
9293
if (props.multiple) {
9394
if (props.value.includes(newItem)) {

src/components/input/number-field/TNumberField.interface.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import type {KeyboardEvent} from 'react';
33
import type {TBaseProps} from '@/common/base/TBase.interface';
44
import type {TValidatorProps} from '@/common/validator/TValidator.interface';
55

6-
const numberField = ['outline', 'underline'] as const;
7-
type numberFieldType = (typeof numberField)[number];
6+
type numberFieldType = ['outline', 'underline'][number];
87

98
export interface TNumberFieldProps extends TBaseProps, TValidatorProps {
109
type?: numberFieldType;

src/components/input/radio-group/TRadioGroup.interface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import type {CSSProperties} from 'react';
22

33
import type {TBaseProps} from '@/common/base/TBase.interface';
44
import type {TValidatorProps} from '@/common/validator/TValidator.interface';
5-
import type {TRadioValue} from '../radio/TRadio.interface';
5+
import type {TRadioValue} from '@/components';
66

77
export type TRadioGroupValue = TRadioValue;
88

99
export interface TRadioGroupItem {
10-
[key: string]: any;
10+
[key: string]: unknown;
1111
}
1212

1313
export interface TRadioGroupProps extends TBaseProps, TValidatorProps {

src/components/input/text-field/TTextField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const TTextField = forwardRef(
124124
if (onBlur) {
125125
onBlur();
126126
}
127-
}, [onBlur, onChange, props.lazy, props.noTrim, props.value, validator]);
127+
}, [innerValue, onBlur, onChange, props.lazy, props.noTrim, validator]);
128128

129129
const onKeyDownInput = useCallback(
130130
(event: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>): void => {

src/components/screen/modal/TModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import type {MouseEvent} from 'react';
4-
import React, {memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState} from 'react';
4+
import React, {memo, useCallback, useLayoutEffect, useMemo, useRef, useState} from 'react';
55
import {createPortal} from 'react-dom';
66
import ReactModal from 'react-modal';
77

0 commit comments

Comments
 (0)