Skip to content

⬆️ Updates eslint-plugin-unicorn to v78 - #947

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/eslint-plugin-unicorn-78.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/eslint-plugin-unicorn-78.x

Conversation

@renovate

@renovate renovate Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
eslint-plugin-unicorn ^17.2.0 → ^78.0.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)

v78.0.0

Compare Source

New rules

Improvements

  • Add SOML support, including a recommended-soml preset (#​3870) 7419b83
  • Report code that contains comments instead of ignoring it (#​3847) 003f0bd
    • Many rules skipped code with comments. They now report it, and only withhold fixes that would remove comments. You may see new reports.
  • Fix cyclic resolution in type-aware checks (#​3826) 5e77e19
  • prefer-default-parameters: Add checkFallbackExpressions option (#​3837) 71bbf59
  • prefer-ternary: Add checkVaryingBase and checkComputedMemberAccess options (#​3869) 1af3c2b
  • consistent-boolean-name: Allow does prefix by default (#​3853) cfad028
  • consistent-boolean-name: Recognize promise-returning functions (#​3879) 769e3b8
  • consistent-boolean-name: Fix cyclic type parameter resolution (#​3821) 5c4808b
  • no-asterisk-prefix-in-documentation-comments: Remove shared indentation (#​3820) a92aee1
  • no-await-in-promise-methods: Clarify the message for nested await (#​3867) 8f73d53
  • no-immediate-mutation: Combine a declaration with an assignment that follows it immediately (#​3851) 811e467
  • no-negated-condition: Support && and || chains of negated operands (#​3834) 15bfade
  • no-top-level-side-effects: Allow known pure imported helpers, like defineConfig() and React memo(), and check default-exported expressions (#​3822) 3826236
  • no-unnecessary-parameters: Fix false positive for recursive defaults (#​3844) e2d8d0f
  • no-unnecessary-parameters: Ignore parameters named by type predicates (#​3859) f0c631c
  • no-using-resource-escape: Check TypeScript instantiation expressions (#​3833) 7a9f7df
  • prefer-at: Fix false positives for DOM collections (#​3842) ca78a7a
  • prefer-combined-guards: Combine non-literal exits in TypeScript when type information is available (#​3860) 2bcc7be
  • prefer-default-parameters: Support static template literal fallbacks (#​3835) 3d8b40a
  • prefer-default-parameters: Support fallbacks to earlier bindings (#​3840) d4bfc1c
  • prefer-default-parameters: Handle nullable fallback types (#​3858) d75786f
  • prefer-early-return, prefer-continue: Suggest opposite relational comparisons (#​3873) de2e6da
  • prefer-logical-operator-over-ternary: Handle non-boolean conditions (#​3843) 5c4d50c
  • prefer-minimal-ternary: Ignore formatting differences in shared expressions (#​3841) b0c2142
  • prefer-minimal-ternary: Prevent unsafe TypeScript object autofixes (#​3846) 2f33c91
  • prefer-observer-apis: Check let and var listener functions, and ignore reassigned listeners (#​3833) 7a9f7df
  • prefer-private-class-fields: Do not autofix reassigned methods, and suggest private arrow functions for bound methods (#​3823) 6f0f4bb
  • prefer-scoped-selector: Ignore queries on more non-element roots, like ownerDocument and getRootNode() (#​3833) 7a9f7df
  • prefer-spread: Prevent unsafe TypeScript autofixes (#​3882) 21e99ff
  • prefer-ternary: Support destructuring assignments (#​3852) e29d1ee
  • prefer-ternary: Support statements that differ in only one part, like call(test ? a : b) (#​3869) 1af3c2b
  • prefer-top-level-await: Allow cached promise assignments (#​3819) 2fb8eb6
  • prefer-top-level-await: Avoid false positives on non-promise calls (#​3883) 3f125f1
  • relative-url-style: Support complex Markdown labels, embedded HTML in Markdown, JSX, URL.canParse(), URL.parse(), and more HTML attributes (#​3854) 2760ce4
  • require-module-specifiers: Allow bare export {} in declaration files (#​3866) e727481
  • template-indent: Ignore templates with content on the opening line (#​3868) 921dd8c

v77.0.0

Compare Source

Breaking

  • Move CSS-only rules to eslint-cssicorn (#​3811) c3697c0
    • unicorn/no-deprecated-css-features → cssicorn/no-deprecated-features
    • unicorn/no-duplicate-css-selectors → cssicorn/no-duplicate-selectors
    • unicorn/no-duplicate-font-family-names → cssicorn/no-duplicate-font-family-names
    • unicorn/no-invalid-media-features → cssicorn/no-invalid-media-features
    • unicorn/no-nesting-with-mixed-specificity → cssicorn/no-nesting-with-mixed-specificity
    • unicorn/no-redundant-nested-style-rules → cssicorn/no-redundant-nested-style-rules
    • unicorn/no-unknown-css-annotations → cssicorn/no-unknown-annotations
    • unicorn/no-unknown-pseudo-selectors → cssicorn/no-unknown-pseudo-selectors
    • unicorn/no-unscoped-css-nesting-selector → cssicorn/no-unscoped-nesting-selector
    • unicorn/prefer-explicit-viewport-units → cssicorn/prefer-explicit-viewport-units
    • unicorn/prefer-media-feature-range-syntax → cssicorn/prefer-media-feature-range-syntax
  • Remove the deprecated flat/recommended and flat/all configs (#​3810) 6f989c6
    • Use recommended and all instead.

New rules

Improvements

  • Add recommended presets for non-JavaScript languages: recommended-css, recommended-html, recommended-json, recommended-markdown, recommended-toml, and recommended-yaml (#​3810) 6f989c6
  • Add support for more languages in some rules (#​3741) a330d28
    • JSON: consistent-compound-words, empty-brace-spaces, escape-case, name-replacements, no-manually-wrapped-comments, no-zero-fractions, number-literal-case, single-line-block-comment-style, string-content
    • CSS: consistent-compound-words, empty-brace-spaces, escape-case, id-match, name-replacements, no-zero-fractions, number-literal-case, relative-url-style, single-line-block-comment-style, string-content
    • HTML: consistent-compound-words, id-match, name-replacements, relative-url-style
    • Markdown: name-replacements, relative-url-style
    • YAML: consistent-compound-words, empty-brace-spaces, escape-case, name-replacements, no-manually-wrapped-comments, no-zero-fractions, number-literal-case, string-content
    • TOML: consistent-compound-words, empty-brace-spaces, name-replacements, no-zero-fractions
  • Let eslint-disable comments suppress reports instead of making rules skip the code, which made the directive look unused (#​3783) 2428f98
  • no-asterisk-prefix-in-documentation-comments: Support CSS and JSON, and enable in recommended preset (#​3725) d0f8a03
  • number-literal-case: Move from unopinionated to recommended preset 769e2d5
  • prefer-combined-guards: Add checkMultiStatementBodies option (#​3760) 490ff39
  • prefer-simplified-conditions: Add negatedConditions option (#​3778) 2bb9171
  • comment-content: Improve performance (#​3763) cbe4b6b
  • consistent-conditional-object-spread: Report unnecessary boolean casts in logical mode (#​3761) 1bc3b07
  • logical-assignment-operators: Support computed properties (#​3739) 1c7901f
  • name-replacements: Prefer repository over repo (#​3743) 54ff97f
  • no-await-in-promise-methods: Report nested await (#​3758) 8c2c194
  • no-invalid-argument-count: Avoid false positives for spread arguments (#​3781) 769208a
  • no-manually-wrapped-comments: Support block comments and CSS (#​3744) 1e82f7a
  • no-shorthand-property-overrides: Improve shorthand detection (#​3792) b1b8904
  • no-unnecessary-array-flat-map: Remove unnecessary singleton array wrappers (#​3782) eedbb2c
  • prefer-default-parameters: Report bindings with consistent fallback expressions (#​3780) 1ef535d
  • prefer-direct-iteration: Fix type inference for destructured bindings (#​3809) 93ef59c
  • prefer-early-return, prefer-continue: Check guards after other statements in checkShortBodies (#​3759) 6f405df
  • prefer-logical-operator-over-ternary: Only simplify boolean branches (#​3768) d84d561
  • prefer-simple-condition-first: Handle typeof guards (#​3740) 118000b
  • prefer-single-call: Make array call autofixes safe (#​3770) bcb9394
  • prefer-single-object-destructuring: Inline local sources (#​3779) fa417ff
  • prefer-uint8array-hex: Recognize more encoding patterns (#​3791) dd24a9a

v76.0.0

Compare Source

Breaking
Improvements
  • prefer-minimal-ternary: Add autofix (#​3716) aaa75a4
  • prefer-logical-operator-over-ternary: Handle boolean expressions (#​3711)
  • prefer-ternary: Preserve readable branches (#​3709) f7a35ae
  • no-typeof-undefined: Ignore TypeScript ambient variables (#​3708) 9245ed8
  • Fix autofixes that hardcoded a tab for inserted indentation (#​3721) db20ce1

v75.0.0

Compare Source

New rules

Improvements


v74.0.0

Compare Source

Improvements


v73.0.0

Compare Source

New rules

Improvements


v72.0.0

Compare Source

Breaking

  • prefer-minimal-ternary: Rename checkVaryingCallee option to checkVaryingBase (#​3508) 825b7b9

New rules

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (in timezone Europe/Moscow)

  • Branch creation
    • "after 10pm every weekday,before 5am every weekday,every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions

Copy link
Copy Markdown

Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md.

@github-actions

Copy link
Copy Markdown

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

@github-actions

Copy link
Copy Markdown

Thanks for the PR!

This section of the codebase is owner by https://github.com/AlexRogalskiy/ - if they write a comment saying "LGTM" then it will be merged.

@socket-security

socket-security Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedeslint-plugin-unicorn@​17.2.0 ⏵ 78.0.098100100 +194100

View full report

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-unicorn-78.x branch from 3254e29 to 25e23bc Compare October 15, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants