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.
.cursor/rules/typescript-expo-jest-detox-cursorrules-prompt-file.mdcWhat 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.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/typescript-expo-jest-detox-cursorrules-prompt-file.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/typescript-expo-jest-detox-cursorrules-prompt-file.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/typescript-expo-jest-detox-cursorrules-prompt-file.mdManually: put the files in place
.clinerules/typescript-expo-jest-detox-cursorrules-prompt-file.mdStep 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