diff --git a/package.json b/package.json index cff908a4e1..8f55e91ada 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "webpack-cli": "^5.0.0", "webpack-dev-server": "^4.11.1", "workbox-webpack-plugin": "^7.0.0", - "xo": "^0.56.0", + "xo": "^0.57.0", "yarn-minify": "^1.0.1" }, "ava": { diff --git a/sickchill/gui/slick/js/ajaxNotifications.js b/sickchill/gui/slick/js/ajaxNotifications.js index c24213c748..cf2f69e27a 100644 --- a/sickchill/gui/slick/js/ajaxNotifications.js +++ b/sickchill/gui/slick/js/ajaxNotifications.js @@ -26,7 +26,9 @@ function displayPNotify(type, title, message, id) { hide: true, history: true, shadow: true, - stack: {dir1: 'up', dir2: 'left', firstpos1: 25, firstpos2: 25}, + stack: { + dir1: 'up', dir2: 'left', firstpos1: 25, firstpos2: 25, + }, styling: 'fontawesome', width: '340px', destroy: true, diff --git a/sickchill/gui/slick/js/browser.js b/sickchill/gui/slick/js/browser.js index ab2f0d82a0..09db03c38c 100644 --- a/sickchill/gui/slick/js/browser.js +++ b/sickchill/gui/slick/js/browser.js @@ -34,10 +34,10 @@ }, data => { fileBrowserDialog.empty(); const firstValue = data[0]; - let i = 0; let list = null; let link = null; - data = $.grep(data, () => i++ !== 0); + + const innerData = $.grep(data, (value, index) => index !== 0); const inputContainer = $('
'); $('').val(firstValue.currentPath).on('keypress', event_ => { @@ -52,7 +52,7 @@ const listContainer = $('
'); list = $('