Skip to content

chore(npm): update dependency eslint-plugin-unicorn to v79 - #265

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

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

Conversation

@renovate

@renovate renovate Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
eslint-plugin-unicorn ^62.0.0 → ^79.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)

v79.0.0

Compare Source

Breaking

  • no-top-level-side-effects: Focus on mutations of globals, and remove it from the unopinionated preset (#​3915) 24abac4
    • Unknown calls are no longer reported by default. Enable the new checkUnknownCalls option for stricter checking.
    • Mutations of globals, like document.title = 'x' and Object.assign(globalThis, …), are now reported, also in declarations and default exports. You may see new reports.

Improvements

  • Infer types from JSDoc @type, @param, and @returns annotations in rules that use type information (#​3941) 2b4bfab
  • Handle template literals without expressions like strings in more rules (#​3943) 8bd8c06
  • Autofix more code that contains comments, while keeping the comments (#​3939) 87baf82
  • Fix autofixes in many rules that could produce broken code or wrong parentheses (#​3917) fed7eac
  • Make autofixes safer in many rules
    • Fixes that can change behavior in rare cases are now suggestions, for example in prefer-spread, prefer-math-min-max, prefer-modern-dom-apis, and prefer-switch.
  • Improve performance 175efaf 3dd8fd2
  • comment-content: Add ignore option (#​3950) 3fe046e
  • consistent-function-scoping: Ignore functions in Vitest hoisted factories (#​3905) 98912a9
  • custom-error-definition: Ignore abstract TypeScript classes (#​3934) ee3501f
  • no-non-function-verb-prefix: Ignore shorthand destructuring (#​3926) 76e5760
  • no-top-level-side-effects: Recognize more config helpers (#​3916) d459c51
  • no-useless-coercion: Preserve boolean return types in TypeScript (#​3904) bef1571
  • prefer-array-some: Check .find() results used as booleans (#​3913) c957bf3
  • prefer-default-parameters: Skip unsafe logical OR fallbacks (#​3951) bcec97a
  • prefer-includes: Skip incompatible TypeScript search values (#​3927) d66441a
  • prefer-includes-over-repeated-comparisons: Report negated and typed loose comparisons (#​3935) 6e21cb1
  • prefer-includes-over-repeated-comparisons: Preserve TypeScript union narrowing (#​3910) b5c479d
  • prefer-literal-ascii: Preserve escaped trailing spaces in templates (#​3911) 360094b
  • prefer-minimal-ternary: Skip minimizations that break types (#​3892) f022d6d
  • prefer-modern-math-apis: Use suggestions for changes that can affect numeric results (#​3914) 8af7c17
  • prefer-simple-condition-first: Improve typeof comparisons and guards (#​3948) ee3edf0
  • prefer-simplified-conditions: Handle equivalent logical expressions (#​3938) a0b2788
  • prefer-simplified-conditions: Factor common terms in longer chains and static templates (#​3942) 0d8c8bc
  • prefer-smaller-scope: Check TypeScript type aliases (#​3928) 290d922
  • prefer-string-raw: Preserve TypeScript literal types in autofixes (#​3912) 0611546
  • prefer-ternary: Preserve consecutive early-return guards (#​3945) 3fa840f
  • require-post-message-target-origin: Skip incompatible typed methods (#​3925) 387194b
  • throw-new-error: Ignore calls that return functions (#​3894) 5e35def

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

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


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 9am on tuesday"
  • Automerge
    • At any time (no schedule defined)

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

♻ Rebasing: Whenever PR becomes conflicted, 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.

@futo-kritika

futo-kritika Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Re-runViewConfidence Score: 2/5

[Medium risk] The P0 finding looks right: Unicorn 79 declares an ESLint >=10.4 peer while the lockfile pairs it with ESLint 9.39.5, so the lint toolchain is unsupported until ESLint is upgraded too. The P2 about the renamed abbreviation rule is also plausible. The risk rests on a 17-major jump to a dev-only lint plugin that is standalone, since a failure stays inside linting. The incidental yaml 2.8.2 to 2.9.1 bump in the lockfile does not change that.

Not approved: confidence 2/5 is below the threshold of 4

Findings

Summary

Updates eslint-plugin-unicorn from 62 to 79 and refreshes dependencies.

  • eslint.config.mjs adopts Unicorn 79’s recommended rules on the next dependency installation.
  • pnpm-lock.yaml also advances YAML from 2.8.2 to 2.9.1 across Vite and OpenTelemetry dependencies.
Review context · 6 sources · 5/5 commands · 1 overlapping pull request

Reviews (1) · Last reviewed commit: "chore(npm): update dependency eslint-plu..." · openai/gpt-6.1-sol · $0.60

Comment thread pnpm-workspace.yaml
eslint-config-prettier: ^10.1.8
eslint-plugin-prettier: ^5.5.4
eslint-plugin-unicorn: ^62.0.0
eslint-plugin-unicorn: ^79.0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Update ESLint alongside Unicorn’s new minimum requirement · compatibility

With the root dependency installation in this PR, Unicorn 79 is paired with ESLint 9.39.5, while Unicorn has required ESLint >=10.4 since v66. The catalog still restricts ESLint to ^9.39.2 at line 82, and the lockfile explicitly binds the new plugin to that incompatible version. The shared lint task loads this plugin through eslint.config.mjs:3 and :11, so the upgrade leaves the lint toolchain outside its supported API contract rather than completing the required major-version migration.

Suggested fix

Coordinate this update with an ESLint >=10.4 migration, including the matching @eslint/js catalog entry and regenerated lockfile; otherwise retain a Unicorn version compatible with ESLint 9.

Prompt for a coding agent
In pnpm-workspace.yaml, do not upgrade eslint-plugin-unicorn to 79 while eslint remains ^9.39.2. Migrate eslint to >=10.4 and @eslint/js to the matching major, address the ESLint migration in eslint.config.mjs, and regenerate pnpm-lock.yaml so Unicorn resolves against a supported ESLint peer. If that migration is out of scope, retain a Unicorn version supporting ESLint 9.

Comment thread pnpm-workspace.yaml
eslint-config-prettier: ^10.1.8
eslint-plugin-prettier: ^5.5.4
eslint-plugin-unicorn: ^62.0.0
eslint-plugin-unicorn: ^79.0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Carry the abbreviation-rule opt-out to its renamed rule · compatibility

When linting with the new recommended preset, the opt-out at eslint.config.mjs:44 no longer disables abbreviation checks. Unicorn v68 renamed prevent-abbreviations to name-replacements; in v79 the old name is a no-op compatibility rule, while the recommended preset enables name-replacements independently. This silently re-enables the naming policy the repository explicitly disables, including autofixes when running lint with --fix.

Suggested fix

Replace 'unicorn/prevent-abbreviations': 'off' with 'unicorn/name-replacements': 'off' in eslint.config.mjs.

Prompt for a coding agent
In eslint.config.mjs at line 44, replace the rule key 'unicorn/prevent-abbreviations' with 'unicorn/name-replacements', keeping its value 'off', so the existing opt-out survives the Unicorn upgrade.

@github-actions

Copy link
Copy Markdown

@renovate renovate Bot changed the title chore(npm): update dependency eslint-plugin-unicorn (62.0.0 → 79.0.0) chore(npm): update dependency eslint-plugin-unicorn to v79 Nov 17, 2026

This branch was previously deployed

1 inactive deployment
docs-preview — afcb1b09 Deployed Nov 17, 2026 by renovate[bot] via Deploy #258
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