Skip to content

Chore added eslint#95

Merged
soorq merged 3 commits into
devfrom
chore/eslint
Jun 15, 2026
Merged

Chore added eslint#95
soorq merged 3 commits into
devfrom
chore/eslint

Conversation

@soorq

@soorq soorq commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Что сделано

  1. Настроен ESLint с правилами под NestJS/TypeScript проект
  2. Исправлены все ошибки линтинга в коде:
    • require-await — убраны лишние async
    • no-floating-promises — добавлены await/.catch()
    • sonarjs/no-collapsible-if — объединены вложенные условия
    • @typescript-eslint/no-unused-vars — неиспользуемые переменные помечены _
    • functional/immutable-data — исправлены мутации
    • unicorn/filename-case — имена файлов приведены к kebab-case
  3. Настроены исключения для специфичных файлов:
    • Фасады, репозитории, use-case'ы, контроллеры
    • OAuth стратегии, миграции, libs/

Как проверить

pnpm lint

pnpm lint --quiet

pnpm format

Ожидаемый результат

  • pnpm lint - 0 ошибок
  • VSCode не подсвечивает красным
  • CI/CD проходит без ошибок линтинга

@soorq soorq merged commit 5942ec1 into dev Jun 15, 2026
7 checks passed
@soorq soorq deleted the chore/eslint branch June 15, 2026 13:46
soorq added a commit that referenced this pull request Jun 15, 2026
* refactor: eslint config and fixs errors with new config

* feat: eslint rules

* chore: fix code style issues to comply with new ESLint config
soorq added a commit that referenced this pull request Jun 15, 2026
* refactor: eslint config and fixs errors with new config

* feat: eslint rules

* chore: fix code style issues to comply with new ESLint config
soorq added a commit that referenced this pull request Jun 15, 2026
* refactor: eslint config and fixs errors with new config

* feat: eslint rules

* chore: fix code style issues to comply with new ESLint config
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.

1 participant