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

~80 additional lint fixes #4835

Merged
merged 2 commits into from
Jan 14, 2025
Merged

~80 additional lint fixes #4835

merged 2 commits into from
Jan 14, 2025

Conversation

gmechali
Copy link
Contributor

@gmechali gmechali commented Jan 10, 2025

Fixed some react hook dependency arrays, some lint errors to skip and some return types to add.

Down to 99 lint warnings.

@gmechali gmechali marked this pull request as ready for review January 10, 2025 18:38
@gmechali gmechali requested a review from chejennifer January 10, 2025 18:38
Copy link
Contributor

@chejennifer chejennifer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing!

const fetchData = async (props: GaugeTilePropType) => {
const fetchData = async (
props: GaugeTilePropType
): Promise<{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: for these large objects as return types, maybe should define a type for them & in fact, for this one, can just use GaugeChartData

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I used GaugeChartData here.

Right now most of these large objects that we should name I think I skipped them (they're in the remaining 99 lints).
Some of the ones in this PR are a bit large but I think they're always only ever used once / twice and are very custom so I didnt think these deserved to be typed properly. Lmk if you think there are some in this PR that should be!

import Outdated Show resolved Hide resolved
@gmechali gmechali requested a review from chejennifer January 13, 2025 18:59
@gmechali gmechali merged commit 763356d into datacommonsorg:master Jan 14, 2025
8 checks passed
@gmechali gmechali deleted the lints branch January 14, 2025 01:14
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.

2 participants