Skip to content

Conversation

ProFIT1337
Copy link
Contributor

No description provided.

@perlexed
Copy link
Contributor

Как связан этот мр с задачей, на которую он ссылается?

@ProFIT1337
Copy link
Contributor Author

ProFIT1337 commented Jun 16, 2025

Как связан этот мр с задачей, на которую он ссылается?

Задачи, на обновление конфигурации eslint'a до последней версии нет. Мне оказалось сподручно обновить и его, пока обновлял react.

Это MR и MR на обновление реакта независимы друг от друга.

Т.к. Это не совсем по задаче, сделал это в отдельном МР. Если для этого нужна отдельная задача, могу создать.
Если необходимо обсудить, есть ли нужда в обновлении конфигурации eslint'a, можно указать этот MR в качестве того, что изменится

@perlexed
Copy link
Contributor

Пара моментов:

  1. То, что не в одном MR сделал, это хорошо. Но тогда в этом MR не нужно указывать задачу по обновлению реакта, раз одно с другим никак не связано.
  2. В этом MR не только обновление версии линтера, но еще и изменения в коде. Без этих изменений не идет сборка или идет с ошибками?

@ProFIT1337
Copy link
Contributor Author

2. В этом MR не только обновление версии линтера, но еще и изменения в коде. Без этих изменений не идет сборка или идет с ошибками?

Это изменения, приводящие код в соответствие с правилами линтера. Pipeline с ошибкой завершится по lint стадии

@perlexed
Copy link
Contributor

Теперь понятно. Тогда создай, пожалуйста, в гитлабе под это задачу, и реф задачи укажи в этих двух MRах

@ProFIT1337 ProFIT1337 changed the title steroids/dev#748 upgrade streoids/eslint-config steroids/dev#804 upgrade streoids/eslint-config Jun 17, 2025
import _isFunction from 'lodash-es/isFunction';
import _isEqual from 'lodash-es/isEqual';
import _uniqBy from 'lodash-es/uniqBy';

Copy link
Contributor

@fogarea fogarea Jun 26, 2025

Choose a reason for hiding this comment

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

Нужно вернуть возможность отделять импорты пустой строкой, в идеале привести к такому виду

  1. импорты из реакта, стероидов и сторонних библиотек

// перенос строки

  1. импорты из корневых папок проекта, для них должен быть алиас, чтобы можно было не указывать весь путь

// перенос строки

  1. импорты внутри папки

Мне кажется, так сразу будет понятно, откуда что импортируется.

import React from 'react';
import useBem from '@steroidsjs/core/hooks/useBem';
import {DateFormatter} from '@steroidsjs/core/ui/format';
import {Text} from '@steroidsjs/core/ui/typography';
import {Link} from '@steroidsjs/core/ui/nav';

import BaseGrid from 'shared/BaseGrid';

import Button from './views/Button;

Подобное мы делали в Клиницисте, можно посмотреть тут

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fogarea @perlexed

Может имеет смысл сделать это в steroidsjs/eslint-config репозитории, а здесь впоследствии просто обновить версию?

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.

@ProFIT1337 Давай так, да

@ProFIT1337 ProFIT1337 requested a review from fogarea July 1, 2025 05:02

export const reInit = () => init();

// 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.

Почему дизейблится правило, а не меняется местами параметр?


export const showNotification = (
message: 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.

То же что и выше

}
}

}
Copy link
Contributor

Choose a reason for hiding this comment

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

Зачем?

@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable no-promise-executor-return */
Copy link
Contributor

Choose a reason for hiding this comment

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

Ошибки в каком коде отключает это правило, и почему оно включено для всего файла?

lang: this.language || locale.language,
},
// @ts-ignore
// eslint-disable-next-line
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.

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

Comment on lines +4 to +5
// import {CKEditor} from '@ckeditor/ckeditor5-react';
// import ClassicEditor from '@steroidsjs/ckeditor5/packages/ckeditor5-build-classic';
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.

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

Comment on lines -67 to +71
bem.block(
<div className={bem(bem.block(
{
loading: props.isLoading || props.list?.isLoading,
size: props.size,
alternatingColors: props.hasAlternatingColors,
},
), props.className,
)}
), props.className)}
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.

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

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.

3 participants