Skip to content

Commit 5f713ac

Browse files
committed
lint
1 parent 63718a1 commit 5f713ac

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/svelte/src/legacy/warnings.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ var normal = 'font-weight: normal';
1010
*/
1111
export function legacy_recursive_reactive_block() {
1212
if (DEV) {
13-
console.warn(`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.`, bold, normal);
13+
console.warn(
14+
`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.`,
15+
bold,
16+
normal
17+
);
1418
} else {
1519
// TODO print a link to the documentation
16-
console.warn("legacy_recursive_reactive_block");
20+
console.warn('legacy_recursive_reactive_block');
1721
}
18-
}
22+
}

0 commit comments

Comments
 (0)