diff --git a/.eslintrc.json b/.eslintrc.json index ee854f44..150ece31 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,6 +3,7 @@ "extends": [ "plugin:editorconfig/all" ], "plugins": [ "editorconfig" ], "rules": { + "function-paren-newline": "error", "prefer-arrow-callback": "error", "no-var": "error", "quotes": [ diff --git a/config/config.default.php b/config/config.default.php index ea1a3e98..c4329071 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -280,7 +280,7 @@ return [ 'enable_goody' => (bool)env('ENABLE_GOODY', false), // Enables the food voucher in the user profile - 'enable_voucher' => (bool)env('ENABLE_VOUCHER', true), + 'enable_voucher' => (bool)env('ENABLE_VOUCHER', true), // Number of shifts to freeload until angel is locked for shift signup. 'max_freeloadable_shifts' => env('MAX_FREELOADABLE_SHIFTS', 2), diff --git a/resources/assets/js/dashboard.js b/resources/assets/js/dashboard.js index e5fd4d11..b2c5765b 100644 --- a/resources/assets/js/dashboard.js +++ b/resources/assets/js/dashboard.js @@ -25,9 +25,8 @@ ready(() => { document.getElementById('dashboard-fullscreen') ?.addEventListener('click', (event) => { event.preventDefault(); - document.querySelectorAll( - '#navbar-collapse-1,.navbar-nav,.navbar-toggler,#footer,#fullscreen-button' - ).forEach((element) => { + const removeElementsSelector = '#navbar-collapse-1,.navbar-nav,.navbar-toggler,#footer,#fullscreen-button'; + document.querySelectorAll(removeElementsSelector).forEach((element) => { element.parentNode.removeChild(element); });