Skip to content

Add no-unnecessary-array-flat-depth rule #2618

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

Merged

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Mar 31, 2025

Fixes #1629

@fisker fisker marked this pull request as ready for review March 31, 2025 12:35
@fisker fisker force-pushed the no-unnecessary-array-flat-depth branch from 50719b5 to 3199088 Compare March 31, 2025 12:36
@sindresorhus sindresorhus merged commit c63e698 into sindresorhus:main Mar 31, 2025
14 of 16 checks passed
@fisker fisker deleted the no-unnecessary-array-flat-depth branch March 31, 2025 23:25
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.

Rule proposal: Prefer array.flat() over array.flat(1)
2 participants