astro/no-deprecated-getentrybyslug
disallow using deprecated
getEntryBySlug()
- ⚙ This rule is included in
"plugin:astro/recommended"
.
📖 Rule Details
This rule reports use of deprecated getEntryBySlug()
.
---
/* eslint astro/no-deprecated-getentrybyslug: "error" */
/* ✓ GOOD */
import { getEntry } from "astro:content";
/* ✗ BAD */
import { getEntryBySlug } from "astro:content";
---
🔧 Options
Nothing.
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-astro v0.28.0
🔍 Implementation
Edit this page
Back
← astro/no-deprecated-astro-resolve Next Page
astro/no-exports-from-components →
← astro/no-deprecated-astro-resolve Next Page
astro/no-exports-from-components →