Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a couple of new eslint-plugin-unicorn rules#19917

Merged
timvandermeij merged 1 commit intomozilla:masterfrom
Snuffleupagus:unicorn-59-rule-updates
May 17, 2025
Merged

Add a couple of new eslint-plugin-unicorn rules#19917
timvandermeij merged 1 commit intomozilla:masterfrom
Snuffleupagus:unicorn-59-rule-updates

Conversation

@Snuffleupagus
Copy link
Collaborator

The recent eslint-plugin-unicorn update added, and replaced, a few rules that seem useful for us; please refer to https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v59.0.0

Note that none of the following rules required any code-changes:

The recent `eslint-plugin-unicorn` update added, and replaced, a few rules that seem useful for us; please refer to https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v59.0.0

Note that none of the following rules required any code-changes:
 - Replace `no-array-push-push` with `prefer-single-call`, see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-call.md

 - Add `no-unnecessary-slice-end`, see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-slice-end.md

 - Add `no-unnecessary-array-flat-depth`, see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-array-flat-depth.md

 - Add `no-unnecessary-array-splice-count`, see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-array-splice-count.md
@Snuffleupagus Snuffleupagus force-pushed the unicorn-59-rule-updates branch from 522f2a5 to b81b9ce Compare May 17, 2025 11:49
@Snuffleupagus Snuffleupagus marked this pull request as ready for review May 17, 2025 11:49
@timvandermeij timvandermeij merged commit 278fc06 into mozilla:master May 17, 2025
7 checks passed
@timvandermeij
Copy link
Contributor

Thank you for expanding the linting!

@Snuffleupagus Snuffleupagus deleted the unicorn-59-rule-updates branch May 17, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants