Skip to content

Commit faeb0f4

Browse files
committed
Auto merge of #3204 - rust-lang:renovate/eslint-plugin-unicorn-27.x, r=Turbo87
Update dependency eslint-plugin-unicorn to v27 [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint-plugin-unicorn](https://togithub.com/sindresorhus/eslint-plugin-unicorn) | [`26.0.1` -> `27.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-unicorn/26.0.1/27.0.0) | [![age](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/27.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/27.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/27.0.0/compatibility-slim/26.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/27.0.0/confidence-slim/26.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>sindresorhus/eslint-plugin-unicorn</summary> ### [`v27.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/v27.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v26.0.1...v27.0.0) ##### New rules - [`no-array-for-each`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-array-for-each.md) ([#&#8203;1017](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1017)) [`719cd00`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/719cd00) - [`no-array-push-push`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-array-push-push.md) ([#&#8203;1015](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1015)) [`21537d7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/21537d7) - [`no-this-assignment`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-this-assignment.md) ([#&#8203;1018](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1018)) [`62a2f92`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/62a2f92) ##### Improvements - `prefer-ternary`: Add [`only-single-line`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-ternary.md#options) option ([#&#8203;1025](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1025)) [`306c9e7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/306c9e7) - `numeric-separators-style`: Add [`onlyIfContainsSeparator`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/numeric-separators-style.md#options) option ([#&#8203;916](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/916)) [`8d32574`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8d32574) - `prefer-spread`: Prefer `...` over `Array#concat()` ([#&#8203;1029](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1029)) [`cda72bd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/cda72bd) - `prefer-spread`: Fix more `.concat` cases ([#&#8203;1042](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1042)) [`c3c7ba3`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c3c7ba3) - `no-array-callback-reference`: Improve suggestions for `Array#forEach()` ([#&#8203;1049](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1049)) [`77bcdc6`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/77bcdc6) - `no-new-buffer`: Use suggestion for unknown arguments ([#&#8203;1037](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1037)) [`88a724c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/88a724c) - `no-unreadable-array-destructuring`: Add auto-fix ([#&#8203;1010](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1010)) [`27bc3c3`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/27bc3c3) - `new-for-builtins`: Better auto-fix ([#&#8203;1022](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1022)) [`5ba0f83`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5ba0f83) - `no-instanceof-array`: Better auto-fix ([#&#8203;1020](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1020)) [`0520f31`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/0520f31) ##### Fixes - `prefer-query-selector`: Fix crash on unexpected selector ([#&#8203;1034](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1034)) [`88018ca`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/88018ca) </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/rust-lang/crates.io).
2 parents d9c5ebb + a9d767c commit faeb0f4

File tree

3 files changed

+12
-24
lines changed

3 files changed

+12
-24
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ module.exports = {
3939
'ember-concurrency/require-task-name-suffix': 'error',
4040

4141
'unicorn/explicit-length-check': ['error', { 'non-zero': 'not-equal' }],
42+
// disabled because of false positives related to `EmberArray`
43+
'unicorn/no-array-for-each': 'off',
4244
// disabled because we need `null` since JSON has no `undefined`
4345
'unicorn/no-null': 'off',
4446
// disabled because this rule conflicts with prettier

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"eslint-plugin-ember-concurrency": "0.3.1",
113113
"eslint-plugin-import-helpers": "1.1.0",
114114
"eslint-plugin-prettier": "3.3.1",
115-
"eslint-plugin-unicorn": "26.0.1",
115+
"eslint-plugin-unicorn": "27.0.0",
116116
"loader.js": "4.7.0",
117117
"normalize.css": "8.0.1",
118118
"nyc": "15.1.0",

yarn.lock

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7361,14 +7361,6 @@ escodegen@^1.14.1:
73617361
optionalDependencies:
73627362
source-map "~0.6.1"
73637363

7364-
eslint-ast-utils@^1.1.0:
7365-
version "1.1.0"
7366-
resolved "https://registry.yarnpkg.com/eslint-ast-utils/-/eslint-ast-utils-1.1.0.tgz#3d58ba557801cfb1c941d68131ee9f8c34bd1586"
7367-
integrity sha512-otzzTim2/1+lVrlH19EfQQJEhVJSu0zOb9ygb3iapN6UlyaDtyRq4b5U1FuW0v1lRa9Fp/GJyHkSwm6NqABgCA==
7368-
dependencies:
7369-
lodash.get "^4.4.2"
7370-
lodash.zip "^4.2.0"
7371-
73727364
73737365
version "7.2.0"
73747366
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9"
@@ -7403,21 +7395,20 @@ [email protected]:
74037395
dependencies:
74047396
prettier-linter-helpers "^1.0.0"
74057397

7406-
eslint-plugin-unicorn@26.0.1:
7407-
version "26.0.1"
7408-
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-26.0.1.tgz#65f476bb7624beb417066259dc14c7ebb21eb6fc"
7409-
integrity sha512-SWgF9sIVY74zqkkSN2dclSCqRfocWSUGD0haC0NX2oRfmdp9p8dQvJYkYSQePaCyssPUE/pqpsIEEZNTh8crUA==
7398+
eslint-plugin-unicorn@27.0.0:
7399+
version "27.0.0"
7400+
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-27.0.0.tgz#d12436409e399ab75c826bbb17b202846a276e5a"
7401+
integrity sha512-uUvlueTa4SpkvLjbkqx08JbB0tY6XxOAa8vlfwbTzITfVNy3go3QzPCus49fO5M/mfooOuraIDVkaqan/pLAHg==
74107402
dependencies:
74117403
ci-info "^2.0.0"
74127404
clean-regexp "^1.0.0"
7413-
eslint-ast-utils "^1.1.0"
74147405
eslint-template-visitor "^2.2.2"
74157406
eslint-utils "^2.1.0"
74167407
import-modules "^2.1.0"
74177408
lodash "^4.17.20"
74187409
pluralize "^8.0.0"
74197410
read-pkg-up "^7.0.1"
7420-
regexp-tree "^0.1.21"
7411+
regexp-tree "^0.1.22"
74217412
reserved-words "^0.1.2"
74227413
safe-regex "^2.1.1"
74237414
semver "^7.3.4"
@@ -10317,11 +10308,6 @@ lodash.values@^4.3.0:
1031710308
resolved "https://registry.yarnpkg.com/lodash.values/-/lodash.values-4.3.0.tgz#a3a6c2b0ebecc5c2cba1c17e6e620fe81b53d347"
1031810309
integrity sha1-o6bCsOvsxcLLocF+bmIP6BtT00c=
1031910310

10320-
lodash.zip@^4.2.0:
10321-
version "4.2.0"
10322-
resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020"
10323-
integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA=
10324-
1032510311
lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.4, lodash@^4.5.1:
1032610312
version "4.17.20"
1032710313
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
@@ -12586,10 +12572,10 @@ regex-not@^1.0.0, regex-not@^1.0.2:
1258612572
extend-shallow "^3.0.2"
1258712573
safe-regex "^1.1.0"
1258812574

12589-
regexp-tree@^0.1.21, regexp-tree@~0.1.1:
12590-
version "0.1.21"
12591-
resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.21.tgz#55e2246b7f7d36f1b461490942fa780299c400d7"
12592-
integrity sha512-kUUXjX4AnqnR8KRTCrayAo9PzYMRKmVoGgaz2tBuz0MF3g1ZbGebmtW0yFHfFK9CmBjQKeYIgoL22pFLBJY7sw==
12575+
regexp-tree@^0.1.22, regexp-tree@~0.1.1:
12576+
version "0.1.23"
12577+
resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.23.tgz#8a8ce1cc5e971acef62213a7ecdb1f6e18a1f1b2"
12578+
integrity sha512-+7HWfb4Bvu8Rs2eQTUIpX9I/PlQkYOuTNbRpKLJlQpSgwSkzFYh+pUj0gtvglnOZLKB6YgnIgRuJ2/IlpL48qw==
1259312579

1259412580
regexpp@^3.1.0:
1259512581
version "3.1.0"

0 commit comments

Comments
 (0)