feat(unicorn): add prefer-array-last-methods rule - #2317
Merged
elecmonkey merged 10 commits intoSep 28, 2026
Merged
elecmonkey merged 10 commits into
elecmonkey merged 10 commits into
Conversation
HashemKhalifa
marked this pull request as ready for review
September 25, 2026 20:54
HashemKhalifa
marked this pull request as draft
September 25, 2026 21:05
Apply each returned suggestion and compare its message and exact output against the upstream specification. Assert no autofixes and no suggestions for the comment-guarded cases; keep the shared tester unchanged.
HashemKhalifa
marked this pull request as ready for review
September 26, 2026 11:09
HashemKhalifa
marked this pull request as draft
September 27, 2026 08:12
HashemKhalifa
marked this pull request as ready for review
September 28, 2026 07:53
elecmonkey
approved these changes
Sep 28, 2026
elecmonkey
enabled auto-merge (squash)
September 28, 2026 08:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Refs #1309. Port
unicorn/prefer-array-last-methodsfrom eslint-plugin-unicorn v75.0.0.Implementation and tests
2f6c5c42.packages/rslint/src/config/presets/unicorn.ts;presets.test.tsis untouched.Verification
git diff --check: passed. The repository spelling command excludes these upstream fixture files.Upstream GitHub Actions remains at
action_requiredon the current head; these are local focused validation results, not a claim of green upstream CI.