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" ],
|
||||
"plugins": [ "editorconfig" ],
|
||||
"rules": {
|
||||
"function-paren-newline": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"no-var": "error",
|
||||
"quotes": [
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue