AcademyRulesDevelopment

TanStack Router v1 Rules

Front-end teams that want concise routing guidance for TanStack Router projects in Cursor.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/tanstack-router.mdc -o .cursor/rules/tanstack-router.mdc
tanstack-router.mdc

Loading the file...

What it does

A short rules file for Cursor on TanStack Router v1 with React and TypeScript. It covers file-based routing with the Vite plugin, route definitions with loaders and error components, and type-safe search params defined with Zod.

Use cases

  1. 01Define a dynamic route with typed params
  2. 02Add error and pending components to a route
  3. 03Read type-safe search params in a component

Questions about
TanStack Router v1 Rules.

What is TanStack Router v1 Rules used for?

Front-end teams that want concise routing guidance for TanStack Router projects in Cursor. A short rules file for Cursor on TanStack Router v1 with React and TypeScript. It covers file-based routing with the Vite plugin, route definitions with loaders and error components, and type-safe search params defined with Zod.

How do I install TanStack Router v1 Rules?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/tanstack-router.mdc -o .cursor/rules/tanstack-router.mdc

Is TanStack Router v1 Rules open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is TanStack Router v1 Rules safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.