Skip to content

Rule · Lint

Page has no metadata / generateMetadata and inherits only the root title

lint/missing-metadatawarnvoid lintupdated

Why it matters

Without page-level metadata every route shares the root layout's title and description: duplicate titles in search results, weak link previews, and AI answers can't tell pages apart.

How to fix it

Export metadata (static) or generateMetadata (dynamic) with a unique title, description and alternates.canonical from the page, or from a layout that owns the segment.

Example

ts
export const metadata: Metadata = {
  title: 'Pricing',
  description: 'Plans for teams of every size.',
  alternates: { canonical: '/pricing' },
}

References

void lint reports 67 rules in this category. Static source checks with no browser: Tailwind v4 silent failures, Next.js 16 API traps, React render-body bugs, accessibility markup, SEO files and motion hygiene.