hydrogen-web/codestyle.md

8 lines
245 B
Markdown
Raw Normal View History

2020-08-31 19:49:15 +05:30
# 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