-
Notifications
You must be signed in to change notification settings - Fork 25
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: add CI lints #471
base: main
Are you sure you want to change the base?
fix: add CI lints #471
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, left few comments. Also this needs a rebase
.github/workflows/ci.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this to the deploy CI? If it doesn't lint
it shouldn't deploy no?
src={notification.image || appLogo || '/fallback.svg'} | ||
src={(notification.image ?? appLogo) || '/fallback.svg'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes like this are dangerous. What if notification.image
(for any reason) is an empty string? Don't like this
src={app?.metadata?.icons?.[0] || '/fallback.svg'} | ||
src={app?.metadata.icons[0] ?? '/fallback.svg'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -81,7 +82,7 @@ export const notificationsReducer = ( | |||
...topicState, | |||
existingIds: newFullIdsSet, | |||
fullNotifications: unshiftedNotifications, | |||
hasMore: topicState?.hasMore || false, | |||
hasMore: topicState?.hasMore ?? false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, hasMore
is a boolean. I think we should change the ??
rule. In this specific instance it won't matter but a blanket change like this is bad
c234865
to
2727131
Compare
Adds eslint and prettier to CI
Attempted to fix a bunch of lints, but ended up ignoring a lot of them for sake of time. Opened an issue to carefully look at these: #473
Supersedes #389