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

Fix unnecessary types #226

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Fix unnecessary types #226

merged 2 commits into from
Aug 9, 2024

Conversation

Timothy-Gonzalez
Copy link
Member

@Timothy-Gonzalez Timothy-Gonzalez commented Aug 9, 2024

Resolves #217

  • Adds eslint rule to enforce const a: number = 123 -> const a = 123.
  • Removed most cases of unnecessary typing where clearly inferred, such as when typing as the return type of a function

This prevents `const a: number = 123` and enforces `const a = 123`
Types can be inferred most of the time, and adding them when already
explicit is redundant.
@Timothy-Gonzalez Timothy-Gonzalez merged commit 76fa5dd into main Aug 9, 2024
4 checks passed
@Timothy-Gonzalez Timothy-Gonzalez deleted the fix-unnecessary-types branch August 9, 2024 01:51
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.

Clean up unnecessary types & improve eslint linting
1 participant