128.md (9573B)
1 # PR #128 Bump eslint-plugin-unicorn from 41.0.1 to 42.0.0 2 3 - **Status:** merged 4 - **Author:** @dependabot[bot] 5 - **Created:** 2022-04-04T08:36:32Z 6 - **Branch:** dependabot/npm_and_yarn/eslint-plugin-unicorn-42.0.0 → main 7 - **Merged:** 2022-04-18T09:48:48Z 8 - **Labels:** dependencies, javascript 9 - **Assignees:** @MTRNord 10 - **Reviewers:** @MTRNord 11 - **Diff:** [128.diff](./128.diff) 12 13 --- 14 15 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 41.0.1 to 42.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>v42.0.0</h2> 21 <h3>The project has passed 100 lint rules 🎉</h3> 22 <p>Thanks to everyone that has contributed so far.</p> 23 <p>And special thanks to our team member <a href="https://github.com/fisker"><code>@fisker</code></a> for doing most of the work on this project. We could not have gotten this far without him.</p> 24 <h3>New rules</h3> 25 <ul> 26 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md"><code>no-useless-switch-case</code></a> (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1779">#1779</a>) a8fb966</li> 27 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md"><code>prefer-modern-math-apis</code></a> (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1780">#1780</a>) 6dfdeb0</li> 28 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md"><code>no-unreadable-iife</code></a> (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1765">#1765</a>) ce8a4b7</li> 29 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md"><code>prefer-native-coercion-functions</code></a> (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1767">#1767</a>) 51166f4</li> 30 </ul> 31 <h3>Improvements</h3> 32 <ul> 33 <li><code>template-indent</code>: Set the rule <code>error</code> instead of <code>warn</code> in <code>recommended</code> preset (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1781">#1781</a>) 09923af</li> 34 <li><code>prefer-json-parse-buffer</code>: Remove from <code>recommended</code> preset (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1750">#1750</a>) 93f49f2</li> 35 <li><code>no-array-for-each</code>: Add fixer for parenthesized call (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1784">#1784</a>) 5f39c37</li> 36 <li><code>no-array-for-each</code>: Handle optional chaining (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1753">#1753</a>) 1d32db4</li> 37 <li><code>prefer-object-from-entries</code>: Stop checking unknown cases (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1771">#1771</a>) 309771d</li> 38 <li><code>prefer-string-trim-start-end</code>: Check optional chaining (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1768">#1768</a>) 1920597</li> 39 <li><code>no-useless-undefined</code>: Ignore arguments in <code>Function#bind()</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1762">#1762</a>) c501243</li> 40 <li><code>prefer-ternary</code>: Skip fix if there are comments (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1763">#1763</a>) 3013565</li> 41 <li><code>text-encoding-identifier-case</code>: Auto-fix encoding in <code>fs.{readFile,readFileSync}()</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1755">#1755</a>) 5e1c932</li> 42 <li>Add <code>dist</code> and <code>dst</code> abbreviations (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1756">#1756</a>) dffcea8</li> 43 </ul> 44 <h3>Fixes</h3> 45 <ul> 46 <li><code>no-array-for-each</code>: Handle <code>ChainExpression</code> correctly (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1772">#1772</a>) e615a37</li> 47 </ul> 48 <p><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v41.0.1...v42.0.0">https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v41.0.1...v42.0.0</a></p> 49 </blockquote> 50 </details> 51 <details> 52 <summary>Commits</summary> 53 <ul> 54 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/32ae4365849f8769c2474e89fcf74ebe057191ff"><code>32ae436</code></a> 42.0.0</li> 55 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/5f39c3765e3300e63352e103d59b9496ffe6af12"><code>5f39c37</code></a> <code>no-array-for-each</code>: Add fix for parenthesized call (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1784">#1784</a>)</li> 56 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/51166f471c9b1774e48cec1d0130e9d7da5fba5d"><code>51166f4</code></a> Add <code>prefer-native-coercion-functions</code> rule (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1767">#1767</a>)</li> 57 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/1d32db4905912eb84e30efca1e7d42bef3c51b1c"><code>1d32db4</code></a> <code>no-array-for-each</code>: Handle optional chaining (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1753">#1753</a>)</li> 58 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/a8fb966786eb31044d2a81578540490a1d6d987f"><code>a8fb966</code></a> Add <code>no-useless-switch-case</code> rule (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1779">#1779</a>)</li> 59 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/6dfdeb0c71d4a0607d60dbdf1c2692c72a8c2f2e"><code>6dfdeb0</code></a> Add <code>prefer-modern-math-apis</code> rule (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1780">#1780</a>)</li> 60 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/ce8a4b789ae688c54cfc153143f20c18ea59489f"><code>ce8a4b7</code></a> Add <code>no-unreadable-iife</code> rule (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1765">#1765</a>)</li> 61 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/ea6f3004237136e52bfb261087208c45fc4613ab"><code>ea6f300</code></a> Change <code>forbid</code> wording everywhere</li> 62 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/28e369c41a830dd6763661031a043c1d3d4fe4a6"><code>28e369c</code></a> Use <code>disallow</code> instead of <code>forbid</code> in rule descriptions (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1777">#1777</a>)</li> 63 <li><a href="https://github.com/sindresorhus/eslint-plugin-unicorn/commit/09923af3cab701c39f7de1ea9fe866cfc32aa759"><code>09923af</code></a> Set <code>template-indent</code> rule to <code>error</code> instead of <code>warn</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/eslint-plugin-unicorn/issues/1781">#1781</a>)</li> 64 <li>Additional commits viewable in <a href="https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v41.0.1...v42.0.0">compare view</a></li> 65 </ul> 66 </details> 67 <br /> 68 69 70 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 71 72 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`. 73 74 [//]: # (dependabot-automerge-start) 75 [//]: # (dependabot-automerge-end) 76 77 --- 78 79 <details> 80 <summary>Dependabot commands and options</summary> 81 <br /> 82 83 You can trigger Dependabot actions by commenting on this PR: 84 - `@dependabot rebase` will rebase this PR 85 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 86 - `@dependabot merge` will merge this PR after your CI passes on it 87 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 88 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 89 - `@dependabot reopen` will reopen this PR if it is closed 90 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 91 - `@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) 92 - `@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) 93 - `@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) 94 95 96 </details> 97