Skip to content

Commit e1abdb6

Browse files
committed
lint
1 parent b4a7e4c commit e1abdb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/svelte/scripts/check-treeshakeability.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ function check_bundle(case_name, ...strings) {
131131
failed = true;
132132

133133
let lines = bundle.slice(index - 500, index + 500).split('\n');
134-
const target_line = lines.findIndex(line => line.includes(string));
134+
const target_line = lines.findIndex((line) => line.includes(string));
135135
// mark the failed line
136-
lines = lines.map((line, i) => i === target_line ? `> ${line}` : `| ${line}`)
136+
lines = lines
137+
.map((line, i) => (i === target_line ? `> ${line}` : `| ${line}`))
137138
.slice(target_line - 5, target_line + 6);
138139
// eslint-disable-next-line no-console
139140
console.error('The first failed line:\n' + lines.join('\n'));

0 commit comments

Comments
 (0)