From e1abdb642fd5500321ea45b7068365bfbff90790 Mon Sep 17 00:00:00 2001 From: 7nik Date: Wed, 25 Jun 2025 12:23:10 +0300 Subject: [PATCH] lint --- packages/svelte/scripts/check-treeshakeability.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/svelte/scripts/check-treeshakeability.js b/packages/svelte/scripts/check-treeshakeability.js index 6f177c69d8..e883496fe2 100644 --- a/packages/svelte/scripts/check-treeshakeability.js +++ b/packages/svelte/scripts/check-treeshakeability.js @@ -131,9 +131,10 @@ function check_bundle(case_name, ...strings) { failed = true; let lines = bundle.slice(index - 500, index + 500).split('\n'); - const target_line = lines.findIndex(line => line.includes(string)); + const target_line = lines.findIndex((line) => line.includes(string)); // mark the failed line - lines = lines.map((line, i) => i === target_line ? `> ${line}` : `| ${line}`) + lines = lines + .map((line, i) => (i === target_line ? `> ${line}` : `| ${line}`)) .slice(target_line - 5, target_line + 6); // eslint-disable-next-line no-console console.error('The first failed line:\n' + lines.join('\n'));