From 769226408ba135dccddd12571add5d74982749f7 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Wed, 25 Sep 2024 17:52:37 -0700 Subject: [PATCH] Add JavaScript configuration to clang-format. --- .clang-format | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.clang-format b/.clang-format index ab96922..dfeed41 100644 --- a/.clang-format +++ b/.clang-format @@ -1,16 +1,22 @@ ---- -BasedOnStyle: Google - -AlignConsecutiveMacros: AcrossEmptyLines -AlignOperands: DontAlign -AllowShortFunctionsOnASingleLine: false -AllowShortIfStatementsOnASingleLine: Never -AllowShortLoopsOnASingleLine: false -ColumnLimit: 120 -DerivePointerAlignment: false -IndentCaseLabels: false -IndentPPDirectives: AfterHash -IndentWidth: 4 -PPIndentWidth: 2 -PointerAlignment: Right -SortIncludes: Never \ No newline at end of file +--- +BasedOnStyle: Google + +AlignConsecutiveMacros: AcrossEmptyLines +AlignOperands: DontAlign +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false +ColumnLimit: 120 +DerivePointerAlignment: false +IndentCaseLabels: false +IndentPPDirectives: AfterHash +IndentWidth: 4 +PPIndentWidth: 2 +PointerAlignment: Right +SortIncludes: Never +--- +Language: JavaScript +AllowShortCaseLabelsOnASingleLine: true +ContinuationIndentWidth: 2 +IndentWidth: 2 +JavaScriptQuotes: Double