PluginBench
Rule

nativescript

via PatrickJS/awesome-cursorrules

NativeScript development best practices and project structure guidelines.

What is nativescript?

This rule provides guidance for NativeScript mobile app development, covering core APIs, navigation patterns, asset organization, and recommended libraries. Use it when building cross-platform mobile applications with NativeScript to ensure consistent code structure and adherence to framework best practices.

  • Establishes recommended folder structure (assets, components, services, utils)
  • Guides use of @nativescript/core features and common web APIs
  • Recommends TypeScript for type safety and @nativescript/secure-storage for sensitive data
  • Specifies biometrics implementation via @nativescript/biometrics and font icons via nativescript-fonticon
  • Emphasizes proper navigation, error handling, and performance optimization patterns

Applies to

File patterns this rule matches.

**/*
Rule definition (reference)

Source of truth, from the repository.

// NativeScript .cursorrules

// NativeScript best practices

const nativeScriptBestPractices = [ "Utilize @nativescript/core features and APIs where applicable", "Utilize common web APIs where applicable", "Implement proper navigation using NativeScript Navigation", "Use NativeScript's assets folder for images, sounds or videos and use the fonts folder for custom fonts", "Implement proper error handling where possible" ];

// Folder structure

const folderStructure = src/ assets/ components/ services/ utils/;

// Additional instructions

const additionalInstructions = `

  1. Use TypeScript for type safety
  2. Use @nativescript/secure-storage for sensitive data
  3. Use @nativescript/biometrics for anything related to biometrics
  4. Always use nativescript-fonticon for font icons
  5. Follow NativeScript best practices for performance `;

Related rules

Blocks phantom NestJS imports, deprecated patterns, and hallucinated decorators to enforce correct framework usage.

**/*
41k
via PatrickJS/awesome-cursorrules

Official Netlify development rules for serverless, edge, background, and scheduled functions with Blobs and Image CDN support.

**/*
41k
via PatrickJS/awesome-cursorrules

Safety-first, read-only network diagnostics guide for developers troubleshooting connection failures.

**/*
41k
via PatrickJS/awesome-cursorrules

Next.js + TypeScript + shadcn/ui development with Python LLM integration via API routes.

**/*
41k
via PatrickJS/awesome-cursorrules

Next.js with TypeScript and Tailwind UI best practices

**/*.tsx +3
41k
via PatrickJS/awesome-cursorrules

Best practices and folder structure for Next.js App Router development.

**/*
41k
via PatrickJS/awesome-cursorrules