chore(deps-dev): bump eslint-plugin-unicorn from 75.0.0 to 78.0.0
DE
13d ago+80+80+01234567890123456789-14-14-01234567890123456789
Bumps eslint-plugin-unicorn from 75.0.0 to 78.0.0.
Release notes
Sourced from eslint-plugin-unicorn's releases.
v78.0.0
New rules
no-unnecessary-default-arguments(#3885) 1059f09bno-repeated-call-wrappers(#3836) c4fd1febImprovements
- Add SOML support, including a
recommended-somlpreset (#3870) 7419b835- Report code that contains comments instead of ignoring it (#3847) 003f0bdc
- 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) 5e77e19e
prefer-default-parameters: AddcheckFallbackExpressionsoption (#3837) 71bbf59aprefer-ternary: AddcheckVaryingBaseandcheckComputedMemberAccessoptions (#3869) 1af3c2b2consistent-boolean-name: Allowdoesprefix by default (#3853) cfad028dconsistent-boolean-name: Recognize promise-returning functions (#3879) 769e3b87consistent-boolean-name: Fix cyclic type parameter resolution (#3821) 5c4808bano-asterisk-prefix-in-documentation-comments: Remove shared indentation (#3820) a92aee19no-await-in-promise-methods: Clarify the message for nestedawait(#3867) 8f73d539no-immediate-mutation: Combine a declaration with an assignment that follows it immediately (#3851) 811e4678no-negated-condition: Support&&and||chains of negated operands (#3834) 15bfade7no-top-level-side-effects: Allow known pure imported helpers, likedefineConfig()and Reactmemo(), and check default-exported expressions (#3822) 3826236dno-unnecessary-parameters: Fix false positive for recursive defaults (#3844) e2d8d0ffno-unnecessary-parameters: Ignore parameters named by type predicates (#3859) f0c631ceno-using-resource-escape: Check TypeScript instantiation expressions (#3833) 7a9f7df1prefer-at: Fix false positives for DOM collections (#3842) ca78a7aaprefer-combined-guards: Combine non-literal exits in TypeScript when type information is available (#3860) 2bcc7be6prefer-default-parameters: Support static template literal fallbacks (#3835) 3d8b40a5prefer-default-parameters: Support fallbacks to earlier bindings (#3840) d4bfc1cfprefer-default-parameters: Handle nullable fallback types (#3858) d75786f7prefer-early-return,prefer-continue: Suggest opposite relational comparisons (#3873) de2e6daaprefer-logical-operator-over-ternary: Handle non-boolean conditions (#3843) 5c4d50cfprefer-minimal-ternary: Ignore formatting differences in shared expressions (#3841) b0c21423prefer-minimal-ternary: Prevent unsafe TypeScript object autofixes (#3846) 2f33c916prefer-observer-apis: Checkletandvarlistener functions, and ignore reassigned listeners (#3833) 7a9f7df1prefer-private-class-fields: Do not autofix reassigned methods, and suggest private arrow functions for bound methods (#3823) 6f0f4bb8prefer-scoped-selector: Ignore queries on more non-element roots, likeownerDocumentandgetRootNode()(#3833) 7a9f7df1prefer-spread: Prevent unsafe TypeScript autofixes (#3882) 21e99ff8prefer-ternary: Support destructuring assignments (#3852) e29d1eeeprefer-ternary: Support statements that differ in only one part, likecall(test ? a : b)(#3869) 1af3c2b2prefer-top-level-await: Allow cached promise assignments (#3819) 2fb8eb60prefer-top-level-await: Avoid false positives on non-promise calls (#3883) 3f125f14relative-url-style: Support complex Markdown labels, embedded HTML in Markdown, JSX,URL.canParse(),URL.parse(), and more HTML attributes (#3854) 2760ce46require-module-specifiers: Allow bareexport {}in declaration files (#3866) e7274810template-indent: Ignore templates with content on the opening line (#3868) 921dd8c3
https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v77.0.0...v78.0.0
... (truncated)
Commits
843495c78.0.01059f09Addno-unnecessary-default-argumentsrule (#3885)624887fconsistent-boolean-name: Explain whydois excluded (#3884)3f125f1prefer-top-level-await: Avoid false positives on non-promise calls (#3883)21e99ffprefer-spread: Prevent unsafe TypeScript autofixes (#3882)769e3b8consistent-boolean-name: Recognize promise-returning functions (#3879)9eadb60prefer-simple-condition-first: Clarify property access condition classifica...de2e6daprefer-early-return,prefer-continue: Suggest opposite relational compari...7419b83Add SOML support (#3870)1af3c2bprefer-ternary: Minimize matching branch expressions (#3869)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Bumps eslint-plugin-unicorn from 75.0.0 to 78.0.0, adding two new lint rules and changing many rules to report code containing comments instead of ignoring it.
- New rules may flag existing code; the comment-handling change means previously skipped code may now trigger warnings.
- Adds an optional
typescriptpeer dependency, which is already present in the project.