Update eslint-plugin-unicorn 54.0.0 → 57.0.0 (major)#228
Open
depfu[bot] wants to merge 1 commit intomainfrom
Open
Update eslint-plugin-unicorn 54.0.0 → 57.0.0 (major)#228depfu[bot] wants to merge 1 commit intomainfrom
depfu[bot] wants to merge 1 commit intomainfrom
Conversation
|
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.
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ eslint-plugin-unicorn (54.0.0 → 57.0.0) · Repo
Release Notes
57.0.0
56.0.1
56.0.0
55.0.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 65 commits:
57.0.0Update dependenciesReplace `.loc` with `sourceCode.getLoc()` (#2558)`prefer-global-this`: Fix auto-fix for `typeof window` (#2501)Replace `.range` with `sourceCode.getRange()` (#2553)`prefer-string-raw`: Ignore `ImportAttribute` (#2551)`prefer-includes`: Drop duplicated line in docs (#2548)`prefer-global-this`: Also exclude `outerWidth` and `outerHeight` (#2549)Add `consistent-date-clone` rule (#2544)`new-for-builtins`: Correct fix for `Date()` (#2543)Add internal rule `prefer-fixer-remove-range` (#2545)`no-instanceof-builtin-object`: Rename to `no-instanceof-builtins` and use suggestions for unsafe cases (#2537)Add `no-named-default` rule (#2538)`prefer-at`: Remove unsafe autofix for `.slice` with 1 argument (#2476)Add `no-accessor-recursion` rule (#2525)Replace `execa` with `nano-spawn` (#2541)Replace `chalk` with `node-style-text` (#2542)Remove `replaceStringLiteral` (#2540)Add `consistent-assert` rule (#2535)Rename `avoidCapture` to `getAvailableVariableName` (#2539)Deprecate `no-instanceof-array` (#2534)Add `no-instanceof-builtin-object` rule (#2523)Use `import` instead of `require()` in internal rules (#2533)Add `eslint-plugin-jsdoc` to validate jsdoc comment (#2532)Fix CI (#2531)Update dependenciesMove to ESM and flat configImprove the style for showing fail/pass examples (#2529)`prefer-math-min-max`: Reduce false positives in TypeScript (#2527)`prefer-includes`: Support Vue template (#2526)Use `meta.defaultOptions` for rules with options (#2524)Remove eslint-doc-generator exception in npmpackagejsonlintrc (#2511)Unpin and update eslint-doc-generator to v2 (#2510)`prevent-abbreviations`: Add `util` and `utils` to abbreviations (#2507)`prefer-math-min-max`: Ignore BigInt (#2467)56.0.1Fix readme links (#2478)`expiring-todo-comments`: Fix compatibility with ESLint 9.15 (#2497)Fix integration test (#2486)Improve issue/PR title formattingUpdate snapshots (#2485)Fix typo in `no-negation-in-equality-check`'s error56.0.0`no-useless-undefined`: Ignore React 19 `useRef` calls (#2463)Improve error message for `no-new-array` (#2459)Document `reduceRight` alternative for `no-array-reduce` (#2457)Add `prefer-global-this` rule (#2410)Update dependencies (#2447)Add `consistent-existence-index-check` rule (#2425)Remove `better-regex` from recommended rules (#2443)`prefer-string-slice`: Remove unsafe autofix for `String#substr()` (#2427)Add `prefer-math-min-max` (#2432)`no-for-loop`: Remove invalid fix for TypeScript (#2426)`prefer-default-parameters` - Document falsy values (#2423)Automatically format rule names in PR and issue titles (#2411)`prefer-query-selector`: Add support for `getElementsByName` (#2398)55.0.0Switch `run-rules-on-codebase` script to use ESLint CLI directly (#2402)Get `globals` directly from `globals` package (#2395)Add `no-length-as-slice-end` rule (#2400)`prefer-node-protocol`: Fix docs (#2392)Add TypeScript types (#2382)`no-single-promise-in-promise-methods`: Remove broken autofix for `Promise.all()` (#2386)`prefer-node-protocol`: Ignore Bun modules (#2384)`no-negation-in-equality-check`: Ignore boolean type casting (#2379)Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase.All Depfu comment commands