Skip to content
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

LINT-53(HOTFIX): PublicAPI for {segment}.* files #54

Merged
merged 2 commits into from
Dec 23, 2021

Conversation

Krakazybik
Copy link
Member

Description

В регулярке добавлена проверка для {segment}.* файлов.

Reference

#53

@Krakazybik Krakazybik requested a review from azinit December 22, 2021 20:53
@Krakazybik Krakazybik self-assigned this Dec 22, 2021
@Krakazybik Krakazybik added the bug Something isn't working label Dec 22, 2021
@Krakazybik Krakazybik linked an issue Dec 22, 2021 that may be closed by this pull request
@Krakazybik
Copy link
Member Author

Вроде как работает и тесты не обвалилсь =)
https://user-images.githubusercontent.com/1334019/147154795-635db33d-43b1-490b-8f17-4033ff2072db.mp4

@@ -1,6 +1,6 @@
const { layersLib } = require("../../utils");

const FS_SEGMENTS_REG = layersLib.FS_SEGMENTS.join("|");
const FS_SEGMENTS_REG = layersLib.FS_SEGMENTS.map(seg => `${seg}*`).join("|");
Copy link
Member

Choose a reason for hiding this comment

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

issue: Контр пример

model // Pass (valid)
model.ts // Pass (valid)
models.ts // Pass (invalid)
model-data.ts // Pass (invalid)

Тож самое и с другими сегментами можно провернуть)

suggestion: Кажется, нужно более явно указать, чтобы точка была 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Точняк!

@@ -1,6 +1,6 @@
const { layersLib } = require("../../utils");

const FS_SEGMENTS_REG = layersLib.FS_SEGMENTS.join("|");
const FS_SEGMENTS_REG = layersLib.FS_SEGMENTS.map(seg => `${seg}*`).join("|");
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: Ну и если по-хорошему, то как-то эту багу в тестах тоже отобразить бы - чтоб не воспроизводилась больше)

Мб прям явно в импортах написать тип "ui.tsx"

@Krakazybik Krakazybik requested a review from azinit December 22, 2021 21:22
@Krakazybik Krakazybik merged commit ad905f2 into master Dec 23, 2021
@Krakazybik Krakazybik deleted the hotfix/LINT-53-public-api-segments branch December 23, 2021 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LINT: PublicAPI not work with segment.* files
2 participants