460.md (9496B)
1 # PR #460 Bump eslint-plugin-unicorn from 45.0.2 to 47.0.0 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-06-07T09:09:34Z 6 - **Branch:** dependabot/npm_and_yarn/eslint-plugin-unicorn-47.0.0 → main 7 - **Closed:** 2023-07-17T08:49:10Z 8 - **Labels:** dependencies, javascript 9 - **Assignees:** @MTRNord 10 - **Reviewers:** @MTRNord 11 - **Diff:** [460.diff](./460.diff) 12 13 --- 14 15 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 45.0.2 to 47.0.0. 16 <details> 17 <summary>Release notes</summary> 18 <p><em>Sourced from <a href="https://github.com/sindresorhus/eslint-plugin-unicorn/releases">eslint-plugin-unicorn's releases</a>.</em></p> 19 <blockquote> 20 <h2>v47.0.0</h2> 21 <h3>Breaking</h3> 22 <ul> 23 <li>Require Node.js 16 (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2073">#2073</a>) a3bc120</li> 24 <li>Require <code>eslint@>=8.38.0</code> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2066">#2066</a>) 04af765</li> 25 <li>Enable <code>prefer-at</code>, <code>prefer-event-target</code>, and <code>prefer-string-replace-all</code> in recommended config (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2073">#2073</a>) a3bc120</li> 26 </ul> 27 <h3>New rules</h3> 28 <ul> 29 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md"><code>prefer-blob-reading-methods</code></a> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2065">#2065</a>) 2bb1a04</li> 30 </ul> 31 <h3>Improvements</h3> 32 <ul> 33 <li><code>prefer-top-level-await</code>: Ignore <code>.cjs</code> files (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2072">#2072</a>) 0c3ccb1</li> 34 <li><code>prefer-spread</code>: Stop checking <code>Array.from</code> call with map function (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2064">#2064</a>) f5beccb</li> 35 <li><code>prefer-dom-node-text-content</code>: Check optional chaining (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2062">#2062</a>) 8d6d007</li> 36 <li><code>prefer-dom-node-{append,remove}</code>: Check optional chaining (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2061">#2061</a>) 443999b</li> 37 </ul> 38 <h3>Fixes</h3> 39 <ul> 40 <li><code>prefer-number-properties</code>: Fix false positives (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2050">#2050</a>) 124bfa7</li> 41 </ul> 42 <p><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v47.0.0">https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v47.0.0</a></p> 43 <h2>v46.0.1</h2> 44 <ul> 45 <li>Fix <code>expiring-todo-comments</code> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2077">#2077</a>) 7a6861a</li> 46 </ul> 47 <p><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v46.0.1">https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v46.0.1</a></p> 48 <h2>v46.0.0</h2> 49 <h3>Improvements</h3> 50 <ul> 51 <li>Add <code>elems</code> to abbreviations (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2040">#2040</a>) 2a9c840</li> 52 <li><code>no-useless-spread</code>: Check <code>Array#{toReversed,toSorted,toSpliced,with}</code> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2030">#2030</a>) 55469e5</li> 53 <li><code>prefer-set-has</code>: Support <code>Array#{toReversed,toSorted,toSpliced,with}</code> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2032">#2032</a>) fea5b42</li> 54 <li><code>prefer-spread</code>: Forbid use of <code>Array#toSpliced()</code> to copy array (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2034">#2034</a>) 4ada50e</li> 55 <li><code>prefer-negative-index</code>: Check <code>.toSpliced()</code> and <code>.with()</code> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2031">#2031</a>) 7ed738a</li> 56 <li><code>no-empty-file</code>: Support <code>.jsx</code> and <code>.tsx</code> extensions (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2002">#2002</a>) ba1a00e</li> 57 </ul> 58 <h3>Fixes</h3> 59 <ul> 60 <li><code>expiring-todo-comments</code>: Do not normalize package.json (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1871">#1871</a>) (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2020">#2020</a>) fcd8934</li> 61 </ul> 62 <p><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.2...v46.0.0">https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.2...v46.0.0</a></p> 63 </blockquote> 64 </details> 65 <details> 66 <summary>Commits</summary> 67 <ul> 68 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/6f05ddc6f4b350029c4597ed51d4cc445cc958d3"><code>6f05ddc</code></a> 47.0.0</li> 69 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/6ee3687da6b334118cda627401153c3c13e20e70"><code>6ee3687</code></a> Fix <code>expiring-todo-comments</code> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2077">#2077</a>)</li> 70 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/0c3ccb11846c6f1ef8d9ee8ccf34f86c40d843d0"><code>0c3ccb1</code></a> <code>prefer-top-level-await</code>: Ignore <code>.cjs</code> files (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2072">#2072</a>)</li> 71 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/a3bc1203e7fdb1504a9af8db98298e33a2a6a932"><code>a3bc120</code></a> Require Node.js 16, enable <code>prefer-at</code>, <code>prefer-event-target</code>, and `prefer-st...</li> 72 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/a9337e847e0ca4d725bdedf8f13e24c7d0dfcda9"><code>a9337e8</code></a> Extend explanations for some rules (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2070">#2070</a>)</li> 73 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/2bb1a04ec5376064875f0c075a8e1cf9c54c9cf5"><code>2bb1a04</code></a> Add <code>prefer-blob-reading-methods</code> rule (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2065">#2065</a>)</li> 74 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/d90f3379f00050320951b07e50754467fb853719"><code>d90f337</code></a> Use <code>SourceCode#getScope</code> (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2068">#2068</a>)</li> 75 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/f14433068bbf92d56b3aaa457c5a1aa0ec19e7ab"><code>f144330</code></a> Meta tweaks</li> 76 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/1eca7d072dd42940dcfda0a022edec452f79c105"><code>1eca7d0</code></a> Switch to MDN links (<a href="https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2069">#2069</a>)</li> 77 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/04af765355209bfbea408acec34e53dc8e79731d"><code>04af765</code></a> Use <code>SourceCode#{getDeclaredVariables,getAncestors}</code>, require `eslint@>=8.38....</li> 78 <li>Additional commits viewable in <a href="https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.2...v47.0.0">compare view</a></li> 79 </ul> 80 </details> 81 <br /> 82 83 84 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 85 86 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`. 87 88 [//]: # (dependabot-automerge-start) 89 [//]: # (dependabot-automerge-end) 90 91 --- 92 93 <details> 94 <summary>Dependabot commands and options</summary> 95 <br /> 96 97 You can trigger Dependabot actions by commenting on this PR: 98 - `@dependabot rebase` will rebase this PR 99 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 100 - `@dependabot merge` will merge this PR after your CI passes on it 101 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 102 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 103 - `@dependabot reopen` will reopen this PR if it is closed 104 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 105 - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) 106 - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) 107 - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) 108 109 110 </details> 111 112 113 ## Comments 114 115 ### @dependabot[bot] — 2023-07-17T08:49:09Z 116 117 Superseded by #533. 118