Skip to content

Commit a02dd7d

Browse files
committed
refactor:
1 parent b9ea209 commit a02dd7d

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

.github/copilot-instructions.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,46 @@
1-
Welcome, Copilot! This file provides context and coding guidelines for assisting in this React Native project. Instructions are
2-
split into two sections. General instructions and project specific instructions. General instructions are shared across all projects,
3-
between members of RN team. They include general good code practices and approached applicable across projects. These should be
4-
updated by changes to RN project template.
1+
Welcome, Copilot! This file provides context and coding guidelines for assisting with this React Native project. Instructions are divided
2+
into two sections: General Instructions and Project-Specific Instructions. General Instructions are shared across all projects within the
3+
RN team and include best practices applicable across projects. These should be updated as changes are made to the RN project template.
54

6-
Project specific instructions have bigger priority and can override general instructions. These are set up per project
7-
and are updated in a process of project development.
5+
Project-Specific Instructions take precedence and can override General Instructions. These are tailored to the specific needs of the project
6+
and are updated throughout the development process.
87

9-
# -------------------------------------------------------------------------------------------------
10-
11-
# GENERAL INSTRUCTIONS
12-
13-
# -------------------------------------------------------------------------------------------------
8+
# ------------------------ GENERAL INSTRUCTIONS ------------------------
149

1510
### About
1611

1712
- This is a React Native app built with Expo and TypeScript.
18-
- Project uses pnpm as a package manager.
13+
- The project uses pnpm as its package manager.
1914

20-
### Code quality tools
15+
### Code Quality Tools
2116

22-
- Project uses ESLint + Prettier (auto-formatting & rules)
17+
- The project uses ESLint and Prettier for auto-formatting and enforcing coding rules.
2318

24-
### Code style
19+
### Code Style
2520

2621
- Prefer destructuring for props and objects.
2722
- Use modern TypeScript syntax and features.
2823
- Use arrow functions for components.
2924
- Avoid deprecated or legacy APIs.
3025
- Use `async/await` for asynchronous operations.
3126

32-
### Preferred modules and libraries
27+
### Preferred Modules and Libraries
3328

3429
- Use `expo-router` for navigation.
3530
- Prefer the usage of Expo libraries when available.
3631

37-
### Chat and communication
32+
### Chat and Communication
3833

39-
- When suggesting code changes in chat, make sure to include imports at the top of the file.
34+
- When suggesting code changes in chat, ensure imports are included at the top of the file.
4035

4136
### Animations
4237

43-
- Use react-native-reanimated and Skia for animations and drawing
38+
- Use react-native-reanimated and Skia for animations and drawing.
4439
- Avoid thread jumping in animations to ensure smooth performance.
4540

4641
### Avoid
4742

4843
- Avoid using `any` types. Always use specific types or interfaces.
4944
- Avoid nesting ternary expressions.
5045

51-
# -------------------------------------------------------------------------------------------------
52-
53-
# PROJECT SPECIFIC INSTRUCTIONS
54-
55-
# -------------------------------------------------------------------------------------------------
46+
# ------------------- PROJECT-SPECIFIC INSTRUCTIONS -----------------------

0 commit comments

Comments
 (0)