From a48897b4e9dea4a5ef02408f6d07b94a7a774403 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Fri, 19 Apr 2019 13:23:15 +0200 Subject: [PATCH] Bump eslint-plugin-unicorn from 7.0.0 to 8.0.2 (#654) * Bump eslint-plugin-unicorn from 7.0.0 to 8.0.2 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 7.0.0 to 8.0.2. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v7.0.0...v8.0.2) Signed-off-by: dependabot[bot] * fixes for eslint-plugin-unicorn 8 --- .eslintrc.yaml | 1 + package.json | 2 +- packages/resolve/lib/http.js | 13 ++++++------- yarn.lock | 26 ++++++++++++++++++++++---- 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 5ef9c4da1..ffdb84256 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -43,3 +43,4 @@ rules: # unicorn https://github.com/sindresorhus/eslint-plugin-unicorn unicorn/filename-case: 0 unicorn/catch-error-name: ['error', {'name': 'err'}] + unicorn/prevent-abbreviations: 0 diff --git a/package.json b/package.json index 94e876a73..1d82f0e36 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "eslint-plugin-node": "^8.0.0", "eslint-plugin-prettier": "^3.0.0", "eslint-plugin-promise": "^4.0.1", - "eslint-plugin-unicorn": "^7.0.0", + "eslint-plugin-unicorn": "^8.0.2", "exorcist": "^1.0.1", "jsdom": "^13.0.0", "lerna": "^3.10.6", diff --git a/packages/resolve/lib/http.js b/packages/resolve/lib/http.js index 621a94a6a..330b02770 100644 --- a/packages/resolve/lib/http.js +++ b/packages/resolve/lib/http.js @@ -10,13 +10,12 @@ function resolve(domain) { .then(res => { return parse(res) .getChildren('Link') - .filter( - link => - [ - 'urn:xmpp:alt-connections:websocket', - 'urn:xmpp:alt-connections:httppoll', - 'urn:xmpp:alt-connections:xbosh', - ].indexOf(link.attrs.rel) > -1 + .filter(link => + [ + 'urn:xmpp:alt-connections:websocket', + 'urn:xmpp:alt-connections:httppoll', + 'urn:xmpp:alt-connections:xbosh', + ].includes(link.attrs.rel) ) .map(({attrs}) => ({ rel: attrs.rel, diff --git a/yarn.lock b/yarn.lock index 32e965c90..22a5bf6f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3344,18 +3344,21 @@ eslint-plugin-promise@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.0.1.tgz#2d074b653f35a23d1ba89d8e976a985117d1c6a2" -eslint-plugin-unicorn@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-7.0.0.tgz#b03ade717684d620392bf5458a51758e8e77ea47" - integrity sha512-Tz2/2nUwT0qzYzHfOzpib6dltmwivdJd+Kf7GZ4e/xg4INCpVMevl1MKFNFv19n9+g2KMdC7yXgPHdUnXmtiBQ== +eslint-plugin-unicorn@^8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-8.0.2.tgz#a1f6192c39916d7385c057f79a95ffcdf47f4636" + integrity sha512-Ik2/Bt/PvPnf1lZgUnNFK2310XoRn/4LYiP5gkEPVDa4w9HCoii7I6SeKh2X5Rdp2WLy4eUiLcYtiBUp+q2IRw== dependencies: clean-regexp "^1.0.0" eslint-ast-utils "^1.0.0" import-modules "^1.1.0" lodash.camelcase "^4.1.1" + lodash.defaultsdeep "^4.6.0" lodash.kebabcase "^4.0.1" lodash.snakecase "^4.0.1" + lodash.topairs "^4.3.0" lodash.upperfirst "^4.2.0" + reserved-words "^0.1.2" safe-regex "^2.0.1" eslint-scope@^4.0.3: @@ -4907,6 +4910,11 @@ lodash.debounce@^4.0.3, lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" +lodash.defaultsdeep@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.defaultsdeep/-/lodash.defaultsdeep-4.6.0.tgz#bec1024f85b1bd96cbea405b23c14ad6443a6f81" + integrity sha1-vsECT4WxvZbL6kBbI8FK1kQ6b4E= + lodash.difference@^4.3.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.difference/-/lodash.difference-4.5.0.tgz#9ccb4e505d486b91651345772885a2df27fd017c" @@ -4965,6 +4973,11 @@ lodash.templatesettings@^4.0.0: dependencies: lodash._reinterpolate "~3.0.0" +lodash.topairs@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.topairs/-/lodash.topairs-4.3.0.tgz#3b6deaa37d60fb116713c46c5f17ea190ec48d64" + integrity sha1-O23qo31g+xFnE8RsXxfqGQ7EjWQ= + lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" @@ -6561,6 +6574,11 @@ require-precompiled@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/require-precompiled/-/require-precompiled-0.1.0.tgz#5a1b52eb70ebed43eb982e974c85ab59571e56fa" +reserved-words@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/reserved-words/-/reserved-words-0.1.2.tgz#00a0940f98cd501aeaaac316411d9adc52b31ab1" + integrity sha1-AKCUD5jNUBrqqsMWQR2a3FKzGrE= + resolve-cwd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a"