Skip to content

Add no-array-sort rule #2713

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
merged 6 commits into from
Aug 11, 2025
Merged

Add no-array-sort rule #2713

merged 6 commits into from
Aug 11, 2025

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Aug 6, 2025

Part of #1514

Use the same logic as no-array-reverse #2677, except Array#sort() accept an optional comapreFn argument.

@sindresorhus sindresorhus merged commit b70d1e8 into sindresorhus:main Aug 11, 2025
18 checks passed
@fisker fisker deleted the no-array-sort branch August 11, 2025 10:59
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