Skip to content

Files

Latest commit

 

History

History
21 lines (14 loc) · 351 Bytes

no-deprecated-getentrybyslug.md

File metadata and controls

21 lines (14 loc) · 351 Bytes

Pattern: Use of deprecated getEntryBySlug()

Issue: -

Description

Disallow using deprecated getEntryBySlug().

Examples

---
/* eslint astro/no-deprecated-getentrybyslug: "error" */

/* ✓ GOOD */
import { getEntry } from "astro:content";

/* ✗ BAD */
import { getEntryBySlug } from "astro:content";
---