-
Notifications
You must be signed in to change notification settings - Fork 0
steroids/dev#804 updated steroids/eslint-config #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Обновление версии реакта привело к изменениям в 61 файле? o_O |
Так же как в react-core. Я создал два MR. Один только обновляет |
{...props} | ||
{...props.pickerProps} | ||
className={bem(bem.block({ranged: isRange}), props.className)} | ||
// eslint-disable-next-line react/no-unstable-nested-components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Какую ошибку прячет этот коммент?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Будто бы стало менее читаемо. Какое lint-правило заставляет так писать?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Отсутпы поехали
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Отступы поехали
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
То же, что и раннее
No description provided.