From 8ae1c70dc71730beb502178acc68044ce54c241e Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 9 Sep 2017 20:47:27 +0200 Subject: [PATCH] clang-format: add style for formatting javascript source --- .clang-format | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.clang-format b/.clang-format index 21fe245..c83cd2b 100644 --- a/.clang-format +++ b/.clang-format @@ -20,3 +20,18 @@ SpacesInContainerLiterals: false # Alas, not supported: # ForceEmptyLineAtEOF: true + +--- +Language: JavaScript +BasedOnStyle: Google + +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BinPackArguments: false +BinPackParameters: false +BreakBeforeBraces: Attach +ColumnLimit: 79 +IndentWrappedFunctionNames: true +MaxEmptyLinesToKeep: 1 +SpacesInContainerLiterals: false