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

Eslint issue 44 fix #55

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

Conversation

JeremiahHerring
Copy link

Adding onto PR made by @subhajit20 PR #47, I went ahead and fixed the warnings with the "unexpected any." I also fixed the issue with the unexpected non-null assertion. Now when we run lint in the terminal using "npm run lint", there shouldn't be any more warnings.

This may not be correct however since I am using : @typescript-eslint/no-explicit-any : "off", which, by continuing to use any in the codebase, we're telling TypeScript to skip type checking for that variable or expression. This means that TypeScript won't catch potential type-related errors at compile-time, which can be a problem.

Would love to discuss better potential alternatives possibly, I was thinking of using "unknown" instead of "any" but I think it would change the way the components function.

@JeremiahHerring JeremiahHerring marked this pull request as draft March 22, 2024 04:16
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.

None yet

2 participants