Skip to main content
rule

typescript-expo-jest-detox-cursorrules — Cursor rule

A Cursor rule that points the assistant at TypeScript, React Native, Expo and mobile UI work. Useful when your app runs on Expo and you test it with Jest and Detox.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/typescript-expo-jest-detox-cursorrules-prompt-file.mdc
Open on GitHub

What typescript-expo-jest-detox-cursorrules-prompt-file does

The file sets a role for the assistant: an expert in TypeScript, React Native, Expo and mobile UI. Below that comes a list of areas it should follow while writing code — naming, syntax and formatting, styling, safe area handling, performance, navigation, state management, error handling and validation, testing, security, i18n.

There are no snippets or scripts inside. It is a set of section headings plus a pointer to Expo's docs on Views, Blueprints and Extensions. So the rule does not pick libraries for you; it keeps the assistant inside the Expo and React Native stack.

The frontmatter carries globs: **/* and alwaysApply: false, which means the rule does not load on its own. Drop it at .cursor/rules/typescript-expo-jest-detox-cursorrules-prompt-file.mdc and turn it on yourself, or Cursor will skip it.

What it helps with

  • keep generated code inside the Expo and React Native stack
  • remember safe area when laying out screens
  • split navigation and state management into separate layers
  • add validation and error handling to forms
  • cover UI code with Jest and Detox tests

Example prompts for the agent

  • Build a profile screen in Expo that respects the safe area
  • Separate navigation from state in this module
  • Check this component for missing field validation

How to install typescript-expo-jest-detox-cursorrules-prompt-file

Manually: put the files in place

.cursor/rules/typescript-expo-jest-detox-cursorrules-prompt-file.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about typescript-expo-jest-detox-cursorrules-prompt-file

How do I install typescript-expo-jest-detox-cursorrules in Cursor?

Create .cursor/rules/typescript-expo-jest-detox-cursorrules-prompt-file.mdc in your project root and paste the rule contents into it.

What does typescript-expo-jest-detox-cursorrules do?

It tells the Cursor assistant to act as a TypeScript, React Native, Expo and mobile UI expert, and lists the areas where it should match your project's style.

Does the rule apply automatically?

No. It ships with alwaysApply: false, so you have to enable it before it takes effect.

Source text

typescript-expo-jest-detox-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for TypeScript development with Expo, Jest, and Detox integration."
globs: **/*
alwaysApply: false
---
You are an expert in TypeScript, React Native, Expo, and Mobile UI development.

Code Style and Structure

Naming Conventions
TypeScript Usage
Syntax and Formatting
UI and Styling
Safe Area Management
Performance Optimization
Navigation
State Management
Error Handling and Validation
Testing
Security
Internationalization (i18n)

Key Conventions

API Documentation

Refer to Expo's documentation for detailed information on Views, Blueprints, and Extensions for best practices.

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Similar IDE rules

Everything for Mobile →

From the same set210

typescript-nodejs-react-vite-cursorrules-prompt-fi This rule sets TypeScript conventions for Node.js, React, and Vite projects, with guidance for TanStack Query, TanStack Router, and Tailwind. Use it to keep agent edits aligned with your codebase’s existing style. ★ 41,024repo stars typescript-nodejs-nextjs-react-ui-css-cursorrules- A Cursor rule that pins down how the agent writes TypeScript, Next.js App Router, React and Tailwind code. Useful when generated components drift from your conventions. ★ 41,024repo stars typescript-nextjs-supabase-cursorrules-prompt-file A Cursor rule that keeps TypeScript work on Next.js App Router and Supabase consistent: server components first, Shadcn UI, Tailwind. ★ 41,024repo stars typescript-nextjs-cursorrules-prompt-file This rule sets coding conventions for TypeScript and Next.js App Router, with guidance for React and Daisy UI with Tailwind. Use it to steer Cursor toward those patterns in a project. ★ 41,024repo stars typescript-code-convention-cursorrules-prompt-file A Cursor rule that pins down TypeScript code style for Next.js App Router, React, Expo, tRPC and Tailwind projects. Useful when the agent writes code inconsistently. ★ 41,024repo stars toss-style-design-system This Cursor rule guides the agent toward restrained product interfaces with clear hierarchy, grayscale structure, and limited accent color. Use it when editing UI components or styles. ★ 41,024repo stars tokrepo-agent-discovery-cursorrules-prompt-file This Cursor rule makes the agent search TokRepo for existing skills, prompts and MCP configs before writing new ones, and verify every candidate before install. ★ 41,024repo stars tensorflow-deep-learning This rule guides Cursor through TensorFlow project structure, data checks, model training, evaluation, and export. Use it when you want these practices applied to your Python files and notebooks. ★ 41,024repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor