From c069050aa90c364a192adafb8a611dacc845d15c Mon Sep 17 00:00:00 2001 From: Shane Osbourne Date: Fri, 22 Nov 2024 18:54:27 +0000 Subject: [PATCH] lint --- .../new-tab/app/favorites/components/FavoritesCustomized.js | 2 +- special-pages/translations.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/special-pages/pages/new-tab/app/favorites/components/FavoritesCustomized.js b/special-pages/pages/new-tab/app/favorites/components/FavoritesCustomized.js index fc8602fd0..15fe22fb2 100644 --- a/special-pages/pages/new-tab/app/favorites/components/FavoritesCustomized.js +++ b/special-pages/pages/new-tab/app/favorites/components/FavoritesCustomized.js @@ -1,7 +1,7 @@ import { h } from 'preact'; import { useContext } from 'preact/hooks'; -import { useTelemetry, useTypedTranslation, useTypedTranslationWith } from '../../types.js'; +import { useTelemetry, useTypedTranslationWith } from '../../types.js'; import { useVisibility } from '../../widget-list/widget-config.provider.js'; import { useCustomizer } from '../../customizer/components/Customizer.js'; diff --git a/special-pages/translations.mjs b/special-pages/translations.mjs index 7005705ec..a8db8e336 100644 --- a/special-pages/translations.mjs +++ b/special-pages/translations.mjs @@ -18,7 +18,7 @@ const base = { }; if (isLaunchFile(import.meta.url)) { - for (let path of paths) { + for (const path of paths) { await processPage(path); } } @@ -43,7 +43,7 @@ async function processPage(path) { }; }); - for (let rawEntry of rawEntries) { + for (const rawEntry of rawEntries) { console.log(`✅ adding ${rawEntry.path} to ${targetName}.json`); }