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 = `
- Use TypeScript for type safety
- Use @nativescript/secure-storage for sensitive data
- Use @nativescript/biometrics for anything related to biometrics
- Always use nativescript-fonticon for font icons
- Follow NativeScript best practices for performance `;
Related rules
Blocks phantom NestJS imports, deprecated patterns, and hallucinated decorators to enforce correct framework usage.
Official Netlify development rules for serverless, edge, background, and scheduled functions with Blobs and Image CDN support.
Safety-first, read-only network diagnostics guide for developers troubleshooting connection failures.
Next.js + TypeScript + shadcn/ui development with Python LLM integration via API routes.

Next.js with TypeScript and Tailwind UI best practices
Best practices and folder structure for Next.js App Router development.