Skip to content

Commit 6681d55

Browse files
committed
chore(prefer-const): fix docs
1 parent 4cae180 commit 6681d55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/rules/prefer-const.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ This rule reports the same as the base ESLint `prefer-const` rule, except that i
2424
<script>
2525
/* eslint svelte/prefer-const: "error" */
2626
27-
<!-- ✓ GOOD -->
27+
// ✓ GOOD
2828
const { a, b } = $props();
2929
let { a, b } = $state();
3030
31-
32-
<!-- ✗ BAD -->
31+
// ✗ BAD
3332
// Imagine obj is not re-assigned, therefore it should be constant
3433
let obj = { a, b };
3534
</script>

0 commit comments

Comments
 (0)