Skip to content

Conversation

ProFIT1337
Copy link
Contributor

No description provided.

@perlexed
Copy link
Contributor

Обновление версии реакта привело к изменениям в 61 файле? o_O

@ProFIT1337
Copy link
Contributor Author

Обновление версии реакта привело к изменениям в 61 файле? o_O

Так же как в react-core. Я создал два MR. Один только обновляет steroids/eslint, второй обновляет react и удаляет не используемые зависимости. Все MR не зависят друг от друга

@ProFIT1337 ProFIT1337 changed the title steroids/dev#748 updated steroids/eslint-config steroids/dev#804 updated steroids/eslint-config Jun 17, 2025
{...props}
{...props.pickerProps}
className={bem(bem.block({ranged: isRange}), props.className)}
// eslint-disable-next-line react/no-unstable-nested-components
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Какую ошибку прячет этот коммент?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отсутпы поехали

const MenuItemView = props.itemView;

const renderMenuItems = React.useCallback(() => (
// eslint-disable-next-line react/jsx-no-useless-fragment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это точно бест практис? Может как-то можно вернуть фрагмент без отрубания правил линта?

ref={props.forwardedRef}
className={bem(
bem.block({
className={bem(bem.block({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Будто бы стало менее читаемо. Какое lint-правило заставляет так писать?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отсутпы поехали

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отступы поехали

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отступы поехали

return props.renderList(
<div className={bem(
bem.block(
<div className={bem(bem.block(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Такой же случай как и выше, стало менее читаемо

bem: any,
onClick: () => void,
iconName: string,
// eslint-disable-next-line default-param-last
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем дизейблить правило? Мне кажется оно тут правильно подсказывает.

key={props.index}
className={bem(
bem.block(
className={bem(bem.block(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

То же, что и раннее

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants