From 6c4243eac7d4d1f3d37c98098f593f7377e81977 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 31 Aug 2020 16:19:15 +0200 Subject: [PATCH] early start of code style --- codestyle.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 codestyle.md diff --git a/codestyle.md b/codestyle.md new file mode 100644 index 00000000..1db6ad0f --- /dev/null +++ b/codestyle.md @@ -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