clang-format: add style for formatting javascript source

This commit is contained in:
Bert Belder 2017-09-09 20:47:27 +02:00
parent 9bfda64ef3
commit 8ae1c70dc7

View File

@ -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