Skip to content

Commit 713a20b

Browse files
committed
Update agents.md
1 parent 9ec7ef7 commit 713a20b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
## Preferences
1111
- Keep notes in `notes/` as markdown files named `dd-mm-yy-topic.md`
12+
- After generating an image file, reveal it in Finder (`open -R <path>`)
1213

1314
## Coding Conventions
1415

@@ -59,6 +60,7 @@
5960
- Keep logical operator chains (&&, ||) on one line unless they exceed 80 columns
6061
- Keep short destructured imports on one line; break across lines only when exceeding 80 columns
6162
- Keep ternary `?` at end of line, not start of next
63+
- Always spread function arguments across multiple lines when the call exceeds 80 columns
6264
- Always check for unused imports after finishing work on a module
6365

6466
### CSS
@@ -73,9 +75,8 @@
7375
- Only use `t.plan()` for async or non-deterministic tests
7476

7577
### Assertion Formatting
76-
- Assertion call on one line (e.g., `t.ok(`)
77-
- Actual/expected value on separate line
78-
- Message on its own line
78+
- When arguments are short enough (1–2 words each), keep the entire assertion on one line
79+
- Otherwise: assertion call on one line (e.g., `t.ok(`), actual/expected value on separate line, message on its own line
7980
- Blank line between consecutive assertions
8081

8182
### DOM Assertions

0 commit comments

Comments
 (0)