From 87d5b74a9dcb0af133a3e77369038fb99fd5c6e6 Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Mon, 9 Dec 2024 17:21:24 +0530 Subject: [PATCH] Suppress lint errors --- docs/assets/js/selector.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/assets/js/selector.js b/docs/assets/js/selector.js index 7373c7892767..cf13a643ce21 100644 --- a/docs/assets/js/selector.js +++ b/docs/assets/js/selector.js @@ -1,5 +1,6 @@ function syncSelectors(selectedIndex) { const allSelects = document.querySelectorAll('select'); + // eslint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < allSelects.length; i++) { allSelects[i].selectedIndex = selectedIndex; } @@ -19,6 +20,7 @@ function selectOption(select) { allOptions.forEach((option) => { if (option.value === selectedValue) { const toShow = document.getElementsByClassName(option.value); + // eslint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < toShow.length; i++) { toShow[i].classList.remove('hidden'); } @@ -26,6 +28,7 @@ function selectOption(select) { } const toHide = document.getElementsByClassName(option.value); + // eslint-disable-next-line @typescript-eslint/prefer-for-of for (let i = 0; i < toHide.length; i++) { toHide[i].classList.add('hidden'); }