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

chore(eslint): no-explicit-any #2856

Draft
wants to merge 42 commits into
base: master
Choose a base branch
from
Draft

Conversation

JackUait
Copy link
Contributor

@JackUait JackUait commented Apr 11, 2022

Как можно избежать использования типа any?

  1. Воспользуйтесь дженериками
  2. Попробуйте расширить тип с помощью union-типов
  3. Используйте тип unknown, если предыдущие два варианта вам не подошли

Продолжение пулл-реквеста #2803.

Добавил правило no-explicit-any в eslint-конфиг и пофиксил ошибки, которые это правило нашло.

@JackUait JackUait changed the base branch from master to chore/expand-typescript-eslint June 6, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant