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

Добавить правило на использование debug от testing-library #30

Closed
korniux opened this issue Jun 5, 2024 · 2 comments
Assignees

Comments

@korniux
Copy link
Member

korniux commented Jun 5, 2024

Проблема: пропускается debug() функция от testing-library под гит в следствии которой логи CI становятся менее читаемыми.

Задача: добавить правило для ESLint "testing-library/no-debugging-utils": "error" из пакета https://github.com/testing-library/eslint-plugin-testing-library

@krutoo
Copy link
Contributor

krutoo commented Jun 5, 2024

https://github.com/testing-library/eslint-plugin-testing-library

тут чето про дебаг есть, не подошло?

@krutoo krutoo self-assigned this Jun 5, 2024
krutoo added a commit that referenced this issue Aug 8, 2024
- обновлен ESlint до 9 версии
- обновлены плагины ESlint
- временно отключен eslint-plugin-import (не умеет работать с ESLint 9)
- временно отключен eslint-plugin-react-hooks (не умеет работать с ESLint 9)
- удален экспорт `eslint/react-hooks` (в будущем будет интегрирован прямо в `eslint/react`)
- временно удалены тесты и Jest (нужно будет написать интеграционные)
krutoo added a commit that referenced this issue Aug 8, 2024
- удален test скрипт
- удален pre-push hook
krutoo added a commit that referenced this issue Aug 9, 2024
…ry-rules

Шаг 1 #30 Добавить правило на использование debug от testing-library
@krutoo
Copy link
Contributor

krutoo commented Aug 9, 2024

по версиям для 9 еслинта не подходят

поэтому их пока не буду ставить, задачу предлагаю решить изначально предлагаемым способом

krutoo added a commit that referenced this issue Aug 9, 2024
- добавлен конфиг для testing-library (временный)
- мелкие правки комментариев
krutoo added a commit that referenced this issue Aug 9, 2024
…ry-rules

Шаг 2 #30 Добавить правило на использование debug от testing-library #30
krutoo added a commit that referenced this issue Aug 15, 2024
- eslint: правки для JSDoc
- актуализация README
krutoo added a commit that referenced this issue Aug 15, 2024
…ry-rules

Шаг 3 #30 Добавить правило на использование debug от testing-library
krutoo added a commit that referenced this issue Aug 16, 2024
- eslint: вернулись стилистические правила
- добавлено правило для стиля публичных методов и свойств классов (minor)
@krutoo krutoo closed this as completed Aug 16, 2024
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

No branches or pull requests

2 participants