From 93cb70455d5f5c661b89e8e3c15b9ed886a5afb6 Mon Sep 17 00:00:00 2001 From: Bat Date: Sat, 1 Sep 2018 21:34:05 +0100 Subject: [PATCH] Add code stye recommendations to the doc --- docs/DEVELOPMENT.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index 374a0f3..449f7ff 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -75,3 +75,13 @@ msgstr[1] "" ``` And that's it! Once these new messages will have been translated, they will correctly be displayed in the requested locale! + +## Code Style + +For Rust, use the standard style. `rustfmt` can help you keeping your code clean. + +For CSS, the only rule is to use One True Brace Style. + +For JavaScript, we use [the JavaScript Standard Style](https://standardjs.com/). + +For HTML/Tera templates, we use HTML5 syntax.