mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
8 lines
245 B
Markdown
8 lines
245 B
Markdown
|
|
||
|
# Code-style
|
||
|
|
||
|
- methods that return a promise should always use async/await
|
||
|
otherwise synchronous errors can get swallowed
|
||
|
- only named exports, no default exports
|
||
|
otherwise it becomes hard to remember what was a default/named export
|