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: add CI lints #471

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

fix: add CI lints #471

wants to merge 6 commits into from

Conversation

chris13524
Copy link
Member

@chris13524 chris13524 commented Mar 6, 2024

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

@chris13524 chris13524 self-assigned this Mar 6, 2024
Copy link

vercel bot commented Mar 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-web3inbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 2:36am

@chris13524 chris13524 changed the title Fix/add ci lints fix: add CI lints Mar 6, 2024
@chris13524 chris13524 changed the base branch from main to fix/test-env-vars March 6, 2024 01:47
Copy link
Collaborator

@devceline devceline left a 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

Copy link
Collaborator

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?

Comment on lines -77 to +79
src={notification.image || appLogo || '/fallback.svg'}
src={(notification.image ?? appLogo) || '/fallback.svg'}
Copy link
Collaborator

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'}
Copy link
Collaborator

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,
Copy link
Collaborator

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

Base automatically changed from fix/test-env-vars to main March 14, 2024 16:35
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