All examples

Next.js app (TypeScript), Cursor rule

The Next.js rules as a Cursor .mdc rule: same content, with frontmatter that applies it to every request.

Composed from the nextjs-typescript rules pack. Same file from the CLI: aibysitter init --packs nextjs-typescript --format cursor

Written for this site, CC0, scored by this linter, not tested against any agent.

File
nextjs.mdc, 43 lines
Format
Cursor rule (.mdc)
Save as
.cursor/rules/nextjs.mdc
Category
JavaScript
Tags
License
CC0 1.0, public domain. No attribution needed.

Download nextjs.mdc Lint a copy

Aibysitter lint score

100 / 100 — A

Ruleset v4

No deductions.

Badge

Aibysitter lint score: A 100

Markdown for a README:

[![Aibysitter lint score: A 100](https://aibysitting.net/gallery/nextjs-typescript-cursor/badge.svg)](https://aibysitting.net/Gallery/nextjs-typescript-cursor)

nextjs.mdc

View source

---
description: Next.js with TypeScript
alwaysApply: true
---

Next.js with TypeScript

Next.js with the App Router, TypeScript in strict mode, Tailwind CSS. Package manager: pnpm.

Commands

Structure

TypeScript

Styling

Server code

Tests

Before opening a PR