Add function-paren-newline ESLint rule; align config code style (#1000)
* unify indentation in config.default.php * add eslint rule `function-paren-newline` * fix `function-param-newline` lint rule
This commit is contained in:
parent
282f4b45ac
commit
d4a9861751
|
@ -3,6 +3,7 @@
|
||||||
"extends": [ "plugin:editorconfig/all" ],
|
"extends": [ "plugin:editorconfig/all" ],
|
||||||
"plugins": [ "editorconfig" ],
|
"plugins": [ "editorconfig" ],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"function-paren-newline": "error",
|
||||||
"prefer-arrow-callback": "error",
|
"prefer-arrow-callback": "error",
|
||||||
"no-var": "error",
|
"no-var": "error",
|
||||||
"quotes": [
|
"quotes": [
|
||||||
|
|
|
@ -280,7 +280,7 @@ return [
|
||||||
'enable_goody' => (bool)env('ENABLE_GOODY', false),
|
'enable_goody' => (bool)env('ENABLE_GOODY', false),
|
||||||
|
|
||||||
// Enables the food voucher in the user profile
|
// 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.
|
// Number of shifts to freeload until angel is locked for shift signup.
|
||||||
'max_freeloadable_shifts' => env('MAX_FREELOADABLE_SHIFTS', 2),
|
'max_freeloadable_shifts' => env('MAX_FREELOADABLE_SHIFTS', 2),
|
||||||
|
|
|
@ -25,9 +25,8 @@ ready(() => {
|
||||||
document.getElementById('dashboard-fullscreen')
|
document.getElementById('dashboard-fullscreen')
|
||||||
?.addEventListener('click', (event) => {
|
?.addEventListener('click', (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
document.querySelectorAll(
|
const removeElementsSelector = '#navbar-collapse-1,.navbar-nav,.navbar-toggler,#footer,#fullscreen-button';
|
||||||
'#navbar-collapse-1,.navbar-nav,.navbar-toggler,#footer,#fullscreen-button'
|
document.querySelectorAll(removeElementsSelector).forEach((element) => {
|
||||||
).forEach((element) => {
|
|
||||||
element.parentNode.removeChild(element);
|
element.parentNode.removeChild(element);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue