astro/valid-compile
disallow warnings when compiling.
- ⚙ This rule is included in
"plugin:astro/recommended"
.
📖 Rule Details
This rule uses @astrojs/compiler
to check the source code.
---
/* eslint astro/valid-compile: "error" */
---
{/* ✗ BAD */}
<p set:html="string">string</p>
🔧 Options
Nothing.
📚 Further Reading
👫 Related Rules
🚀 Version
This rule was introduced in eslint-plugin-astro v0.21.0
🔍 Implementation
Edit this page
Back
← astro/no-unused-define-vars-in-style Next Page
astro/no-set-html-directive →
← astro/no-unused-define-vars-in-style Next Page
astro/no-set-html-directive →