Skip to content

Commit 8dfea18

Browse files
authored
Update STYLE_GUIDE.md and main.mdc to include guidelines for using named parameters in functions with more than 2 parameters (#181)
1 parent bd4e58d commit 8dfea18

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.cursor/rules/main.mdc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ This repository uses Turborepo.
3232
- Maintain visual consistency with the host application's design system
3333
- Follow responsive design principles
3434

35-
- ### TypeScript Guidelines
35+
### TypeScript Guidelines
3636

3737
- Prefer `type` over `interface`
3838
- Use explicit return types for functions
3939
- Avoid `any` types when possible
4040
- Prefer arrow functions over regular function declarations
41+
- Use named parameters (object destructuring) when a function has more than 2 parameters
4142

4243
### Code Formatting
4344

STYLE_GUIDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This document outlines the coding standards and best practices for contributing
88
- Use explicit return types for functions
99
- Avoid `any` types when possible
1010
- Prefer arrow functions over regular function declarations
11+
- Use named parameters (object destructuring) when a function has more than 2 parameters
1112

1213
## UI Guidelines
1314

0 commit comments

Comments
 (0)