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

Eliminate Usage of any Types and Enforce the Relevant Rule #77

Open
ygrishajev opened this issue Apr 17, 2024 · 0 comments
Open

Eliminate Usage of any Types and Enforce the Relevant Rule #77

ygrishajev opened this issue Apr 17, 2024 · 0 comments
Labels
kind/tech-debt Technical debt

Comments

@ygrishajev
Copy link
Contributor

We are currently using the any type in several places within our codebase, which is recognized as a suboptimal practice for maintaining type safety. Our existing ESLint configuration flags this as a warning under the rule @typescript-eslint/no-explicit-any: "warn". The objective of this task is to address all occurrences where the any type is used, replace them with more specific type annotations, and enhance our type-checking rigor.

Goals

  1. Identify all instances in the codebase where the any type is used.
  2. Refactor these instances to use specific and appropriate TypeScript types.
  3. Update the ESLint rule @typescript-eslint/no-explicit-any from "warn" to "error" to prevent future use of the any type.

Expected Outcome

The codebase is free from the any type, ensuring higher type safety and compliance with TypeScript best practices. The ESLint rule override is removed, making the no-explicit-any rule an error-level directive.

@ygrishajev ygrishajev added the kind/tech-debt Technical debt label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/tech-debt Technical debt
Projects
Status: Backlog (not prioritized)
Development

No branches or pull requests

1 participant