Skip to content

Commit 85280b6

Browse files
committed
Refactor code style and naming conventions
1 parent 0838170 commit 85280b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.cursorrules

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,9 @@ Follow these rules when you write code:
7979
- Write concise, technical TypeScript code with accurate examples.
8080
- Use functional and declarative programming patterns; avoid classes.
8181
- Prefer iteration and modularization over code duplication.
82-
- Use descriptive variable names with auxiliary verbs (e.g., `isLoading`, `hasError`).
82+
- Use camelCase for variables, functions, and methods.
83+
- Use UPPERCASE for environment variables.
84+
- Start each function with a verb, Example: `handleClick`, `handleKeyDown`, `handleChange`, etc.
85+
- Use verbs for boolean variables. Example: `isLoading`, `hasError`, `canDelete`, etc.
86+
- Use complete words instead of abbreviations and correct spelling.
8387
- Structure files with exported components, subcomponents, helpers, static content, and types.

0 commit comments

Comments
 (0)