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

Sprint 4 #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Sprint 4 #7

wants to merge 2 commits into from

Conversation

VladToby
Copy link
Owner

No description provided.

Copy link

netlify bot commented Aug 26, 2024

Deploy Preview for legendary-cat-a62c0e ready!

Name Link
🔨 Latest commit 424fd7c
🔍 Latest deploy log https://app.netlify.com/sites/legendary-cat-a62c0e/deploys/66ccf89f3109b100089d96de
😎 Deploy Preview https://deploy-preview-7--legendary-cat-a62c0e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@VladToby
Copy link
Owner Author

Как я понял из обсуждения в пачке с наставником, тест на pre-commit не проходит из-за бага. Для него всё установлено и работает. Если уже дело не в баге, то буду исправлять.

Copy link

@gennady-bars gennady-bars left a comment

Choose a reason for hiding this comment

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

Поздравляю! Ваша работа принята.

Вы отлично потрудились.

  • Readme хорошо оформлен
  • Проект задеплоен и отлично работает
  • Отлично, что нет EOF ошибок в гите
  • Хорошая структура папок и файлов
  • Отлично, что в pre-commit запускаются и тесты, и линтеры
  • Все тесты (24 шт) проходят успешно
  • npm audit показывает ноль уязвимостей
  • Проект отлично выглядит и функционирует

Можно лучше

  • Попробуйте максимально избавиться от типов any в коде. Хотя бы часть из них можно заменить на unknown, если совсем не получается. Чаще всего помогает использование дженериков. Подробнее тут https://habr.com/ru/companies/tbank/articles/588655/
  • Для линтинга на прекоммите можно воспользоваться библиотекой lint-staged . Она позволяет осуществлять линтинг только тех файлов, которые изменились

Comment on lines +42 to +43
"@types/mocha": "^10.0.7",
"@types/node": "^22.5.0",

Choose a reason for hiding this comment

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

В devDependencies указывается то, что необходимо для сборки и разработки приложения, а в dependencies нужно указывать то, что необходимо непосредственно для работы приложения (express, uuid). Все линтеры, тесты, типы и тд нужно только в devDependencies указывать, чтобы зря не раздувать кол-во пакетов в собранном для деплоя приложении.

"dev": "vite --port 3000",
"build": "vite build",
"preview": "vite preview",
"start": "vite build && vite preview --port 3000",
"eslint": "npx eslint"
"eslint": "npx eslint",

Choose a reason for hiding this comment

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

Можно лучше

Для линтинга на прекоммите можно воспользоваться библиотекой lint-staged . Она позволяет осуществлять линтинг только тех файлов, которые изменились

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