refactor: Bring lint config back to original strictness

This commit is contained in:
Joachim Van Herwegen
2023-10-30 14:32:21 +01:00
parent 7a007dc466
commit 3bb3004abb
52 changed files with 239 additions and 132 deletions

View File

@@ -4,7 +4,7 @@
* @param ids - IDs of the element (empty to retrieve all elements)
*/
export function getElements(...ids) {
ids = ids.length ? ids : [ ...document.querySelectorAll('[id]') ].map(e => e.id);
ids = ids.length > 0 ? ids : [ ...document.querySelectorAll('[id]') ].map(e => e.id);
return Object.fromEntries(ids.map(id => [ id, document.getElementById(id) ]));
}