Skip to content

no-uesless-spread: safely remove empty array or object#2764

Merged
sindresorhus merged 4 commits into
sindresorhus:mainfrom
voderl:main
Sep 23, 2025
Merged

no-uesless-spread: safely remove empty array or object#2764
sindresorhus merged 4 commits into
sindresorhus:mainfrom
voderl:main

Conversation

@voderl
Copy link
Copy Markdown
Contributor

@voderl voderl commented Sep 23, 2025

Currently it will cause syntax error when removing empty object, like source { ...{}, a: 1 } => {,a: 1}

voderl and others added 2 commits September 23, 2025 11:58
Currently it will cause syntax error when removing empty object, like source { ...{}, a: 1 } => {,a: 1}
@fisker
Copy link
Copy Markdown
Collaborator

fisker commented Sep 23, 2025

Can you merge voderl#1? Can't push changes to your branch.

@voderl
Copy link
Copy Markdown
Contributor Author

voderl commented Sep 23, 2025

Done. Thanks your modify.

@sindresorhus sindresorhus merged commit 7aeabab into sindresorhus:main Sep 23, 2025
18 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.

3 participants