Skip to content

Commit e44f9ed

Browse files
committed
Update coding-style.mdc
1 parent 9334522 commit e44f9ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.cursor/rules/coding-style.mdc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ description:
33
globs:
44
alwaysApply: true
55
---
6-
76
Coding style:
87

98
- Favor `async run() {` over `run = async () => {` inside ES6 classes
@@ -15,6 +14,6 @@ Coding style:
1514
- Do not wrap each function body and function call in `try`/`catch` blocks. It pollutes the code. Assume we will always have an e.g. `main().catch((err) => { console.error(err); process.exit(1) })` to catch us. I repeat: Avoid over-use of try-catch such as `try { // foo } catch (err) { console.error('error while foo'); throw err }`, assume we catch errors on a higher level and do not need the extra explananation.
1615
- Before creating new files and new code, see if we can leverage existing work, maybe slighty adapt that without breaking BC, to keep things DRY.
1716
- Favor early exits, so quickly `continue`, `return false` (or `throw` if needed), over nesting everything in positive conditions, creating christmas trees.
18-
- Use Biome with 100 char line width, single quotes for JS/TS, semi: false
17+
- Use Prettier with 100 char line width, single quotes for JS/TS, semi: false
1918
- Use descriptive names: PascalCase for components/types, camelCase for variables/methods/schemas
2019
- Alphabetize imports, group by source type (built-in/external/internal)

0 commit comments

Comments
 (0)