AcademyRulesDevelopment

Next.js, React and TypeScript rules with Web3 stack

Development teams building web3 front ends with Next.js who want Cursor to follow one set of coding and error handling conventions.

  • 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/nextjs-react-typescript-cursorrules-prompt-file.mdc -o .cursor/rules/nextjs-react-typescript.mdc
nextjs-react-typescript.mdc

Loading the file...

What it does

A Cursor rules file for projects using Solidity, TypeScript, Next.js 14 App Router, React, Viem v2, Wagmi v2, Shadcn UI, Radix UI and Tailwind Aria. It asks for functional code, descriptive names, the Receive an Object, Return an Object pattern, and early returns for error handling.

Use cases

  1. 01Write typed functional components for a dapp
  2. 02Apply early-return error handling across functions
  3. 03Keep directories and exports consistent

Questions about
Next.js, React and TypeScript rules with Web3 stack.

What is Next.js, React and TypeScript rules with Web3 stack used for?

Development teams building web3 front ends with Next.js who want Cursor to follow one set of coding and error handling conventions. A Cursor rules file for projects using Solidity, TypeScript, Next.js 14 App Router, React, Viem v2, Wagmi v2, Shadcn UI, Radix UI and Tailwind Aria. It asks for functional code, descriptive names, the Receive an Object, Return an Object pattern, and early returns for error handling.

How do I install Next.js, React and TypeScript rules with Web3 stack?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/nextjs-react-typescript-cursorrules-prompt-file.mdc -o .cursor/rules/nextjs-react-typescript.mdc

Is Next.js, React and TypeScript rules with Web3 stack open source?

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

Is Next.js, React and TypeScript rules with Web3 stack 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.