forked from mystiq/hydrogen-web
early start of code style
This commit is contained in:
parent
a9df0df465
commit
a2ea217245
1 changed files with 7 additions and 0 deletions
7
codestyle.md
Normal file
7
codestyle.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
# 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
|
Loading…
Reference in a new issue