-
-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
Documentation URL
https://next.biomejs.dev/linter/rules/use-template/
Description
The examples aren't parsed properly, the raw html is shown directly
code-block.js:1:11 [lint/style/useTemplate](https://biomejs.dev/linter/rules/use-template) FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ℹ Template literals are preferred over string concatenation.
> 1 │ const s = foo + “baz”;
│ ^^^^^^^^^^^
2 │
ℹ Unsafe fix: Use a template literal.
1 │ - const·s·=·foo·+·“baz”;
1 │ + const·s·=·</strong></span><span style="color: MediumSeaGreen;"><strong>$</strong></span><span style="color: MediumSeaGreen;"><strong>{</strong></span><span style="color: MediumSeaGreen;">f</span><span style="color: MediumSeaGreen;">o</span><span style="color: MediumSeaGreen;">o</span><span style="color: MediumSeaGreen;"><strong>}</strong></span><span style="color: MediumSeaGreen;">b</span><span style="color: MediumSeaGreen;">a</span><span style="color: MediumSeaGreen;">z</span><span style="color: MediumSeaGreen;"><strong>;
2 2 │
Expectations
The HTML should be parsed properly, like on other pages
Code of Conduct
- I agree to follow Biome's Code of Conduct