Skip to content

Rule · Lint

Sitemap uses new Date() for lastModified

lint/sitemap-lastmod-nowwarnvoid lintupdated

Why it matters

A lastmod that changes on every build tells crawlers every page changed every time. Google learns to ignore the site's lastmod entirely, so real updates stop getting priority recrawls.

How to fix it

Use the content's real update date (frontmatter updated, CMS updatedAt, a hand-maintained date) — never build time.

Example

ts
posts.map((p) => ({ url: `${site.url}/blog/${p.slug}`, lastModified: p.updated }))

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.