astro/no-deprecated-astro-resolve
disallow using deprecated
Astro.resolve()
- ⚙ This rule is included in
"plugin:astro/recommended"
.
📖 Rule Details
This rule reports use of deprecated Astro.resolve()
.
---
/* eslint astro/no-deprecated-astro-resolve: "error" */
const { animal } = Astro.props;
---
{/* ✓ GOOD */}
<img src={await import(`../images/${animal}.png`)} />
{/* ✗ BAD */}
<img src={Astro.resolve(`../images/${animal}.png`)} />
🔧 Options
Nothing.
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-astro v0.12.0
🔍 Implementation
Edit this page
Back
← astro/no-deprecated-astro-fetchcontent Next Page
astro/no-deprecated-getentrybyslug →
← astro/no-deprecated-astro-fetchcontent Next Page
astro/no-deprecated-getentrybyslug →