From 68777ec421d41be0da27013afd4165ae7d658d26 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 13 Jul 2026 23:17:25 +0530 Subject: refactor: added linting with esling and also resolved warnings for it --- config/webpack/utils/injected-code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/webpack/utils/injected-code.js') diff --git a/config/webpack/utils/injected-code.js b/config/webpack/utils/injected-code.js index f91fd4a..f2e51c8 100644 --- a/config/webpack/utils/injected-code.js +++ b/config/webpack/utils/injected-code.js @@ -7,7 +7,7 @@ import crypto from "crypto"; * @param {string} url - The URL to hash. * @returns {string} A 16-character hex hash. */ -const getHash = url => +const getHash = (url) => crypto .createHash("md5") .update(url) @@ -50,7 +50,7 @@ export function getInjectedCode(code) { } const extensionAssetsCode = Object.entries(extensionAssets).map( - asset => `"${asset[0]}": chrome.runtime.getURL("${asset[1]}")` + (asset) => `"${asset[0]}": chrome.runtime.getURL("${asset[1]}")` ).join(","); return [code, `{${extensionAssetsCode}}`]; -- cgit v1.2.3