From 86af2757ac7b117d29cd600638b23bed2e7c4d0c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2020 14:46:19 +0200 Subject: [PATCH] Bump eslint-plugin-unicorn from 22.0.0 to 23.0.0 (#3174) * Bump eslint-plugin-unicorn from 22.0.0 to 23.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 22.0.0 to 23.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v22.0.0...v23.0.0) Signed-off-by: dependabot[bot] * Update Layout.js Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR --- build/js/Layout.js | 6 +++--- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build/js/Layout.js b/build/js/Layout.js index c79121334..ce0d68af8 100644 --- a/build/js/Layout.js +++ b/build/js/Layout.js @@ -66,9 +66,9 @@ class Layout { const heights = { window: $(window).height(), - header: $(SELECTOR_HEADER).length !== 0 ? $(SELECTOR_HEADER).outerHeight() : 0, - footer: $(SELECTOR_FOOTER).length !== 0 ? $(SELECTOR_FOOTER).outerHeight() : 0, - sidebar: $(SELECTOR_SIDEBAR).length !== 0 ? $(SELECTOR_SIDEBAR).height() : 0, + header: $(SELECTOR_HEADER).length > 0 ? $(SELECTOR_HEADER).outerHeight() : 0, + footer: $(SELECTOR_FOOTER).length > 0 ? $(SELECTOR_FOOTER).outerHeight() : 0, + sidebar: $(SELECTOR_SIDEBAR).length > 0 ? $(SELECTOR_SIDEBAR).height() : 0, controlSidebar } diff --git a/package-lock.json b/package-lock.json index 6608885fa..e3d7e0dd5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4920,9 +4920,9 @@ } }, "eslint-plugin-unicorn": { - "version": "22.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-22.0.0.tgz", - "integrity": "sha512-jXPOauNiVFYLr+AeU3l21Ao+iDl/G08vUWui21RCI2L1TJIIoJvAMjMR6I+QPKr8FgIumzuR6gzDKCtEx2IkzA==", + "version": "23.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-23.0.0.tgz", + "integrity": "sha512-Vabo3cjl6cjyhcf+76CdQEY6suOFzK0Xh3xo0uL9VDYrDJP5+B6PjV0tHTYm82WZmFWniugFJM3ywHSNYTi/ZQ==", "dev": true, "requires": { "ci-info": "^2.0.0", diff --git a/package.json b/package.json index 4abd1832e..6e1c9224a 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "eslint-config-xo": "^0.33.1", "eslint-plugin-compat": "^3.8.0", "eslint-plugin-import": "^2.22.1", - "eslint-plugin-unicorn": "^22.0.0", + "eslint-plugin-unicorn": "^23.0.0", "node-sass": "^5.0.0", "node-sass-package-importer": "^5.3.2", "nodemon": "^2.0.6",