Skip to content

Conversation

@michaelboyles
Copy link
Contributor

I noticed in a recent commit that you removed some unused collections - they were only added to, never accessed.

There was another instance of this, so I added sonarjs to eslint which has a nice check for unused collections.

I would personally enable sonarjs/no-small-switch. There are instances of switches with only one case, but I know this is some people's preference to keep a clean history, especially if they anticipate additional cases being added later.

Likewise I'd enable sonarjs/no-nested-conditional but I left it off in case you prefer this style.

@types/sharp was removed for an unrelated reason:

WARN  deprecated @types/[email protected]: This is a stub types definition. sharp provides its own type definitions,
so you do not need this installed.

@vercel
Copy link

vercel bot commented Jan 28, 2026

@michaelboyles is attempting to deploy a commit to the Brian Vaughn's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Owner

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

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

Thanks! This looks like a nice addition, though I don't agree with some of the more subjective changes.

@michaelboyles
Copy link
Contributor Author

Sure. I can take or leave that change too. Ends up actually being more lines, and it's more hassle if you want to put a breakpoint on only one case.

But you can see why it made the suggestion: both the branch bodies are the same.

Do you prefer I turn that check off or keep it on, but suppress the error for those 2 cases?

@bvaughn
Copy link
Owner

bvaughn commented Jan 28, 2026

I'd prefer that check be disabled.

@michaelboyles
Copy link
Contributor Author

Sure, all done

@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
react-resizable-panels Ready Ready Preview Jan 28, 2026 5:42pm

@bvaughn bvaughn merged commit 2a85de9 into bvaughn:main Jan 28, 2026
6 of 7 checks passed
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