Skip to content

Commit aff7e3f

Browse files
authored
🤖 Add code style rule requiring braces on if statements (#1135)
1 parent e94f0c9 commit aff7e3f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ for (const item of yield * each(stream(asyncIterable))) {
372372
- After resolve/reject, yielding the `operation` always produces the same
373373
outcome; calling resolve/reject again has no effect.
374374

375+
## Code style
376+
377+
- Always use braces for `if` statements. No bare/braceless `if` blocks.
378+
375379
## Commit and PR conventions
376380

377381
Use [gitmoji](https://gitmoji.dev) for commit and pull request subjects. For

0 commit comments

Comments
 (0)