Skip to content

Files

Latest commit

 

History

History
47 lines (37 loc) · 695 Bytes

valid-compile.md

File metadata and controls

47 lines (37 loc) · 695 Bytes

Pattern: Unresolved compile warning

Issue: -

Description

Disallow warnings when compiling.

Examples

Example of incorrect code:

---
let string = "Foo"
---

<p set:text="string">string</p>
<p set:text={string}>{string}</p>
<p set:text={string}>string</p>
<p set:text="string">{string}</p>
<button set:text="string">
  <div></div>
</button>
<button set:text="string">
  <div>Foo</div>{string}
</button>
<p set:text="string">
  <!-- comment -->{string}
</p>

Example of correct code:

---
let string = "Foo"
---

<p></p>
<p>string</p>
<p>{string}</p>
<p>
  <!-- comment -->{string}
</p>
<div><p></p></div>