Home › All rules › Community › Nativescript Cursor Rules
Nativescript Cursor Rules
Cursor rules for NativeScript development.
CursorAny stackCommunity (CC0)
How to use
Save this as .cursor/rules/nativescript-cursorrules-prompt-file.mdc in your project, commit it, and Cursor will load it. Review it first: community files can be opinionated or out of date.
Note: Review and test before use. Provided as is, without warranty. See Terms.
.cursor/rules/nativescript-cursorrules-prompt-file.mdcDownload ---
description: "Cursor rules for NativeScript development."
globs: **/*
alwaysApply: false
---
// 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
`;