Last active
August 31, 2024 07:59
-
-
Save dottharun/6a5e3149bc86f63ea6ad15ba9ff3c72d to your computer and use it in GitHub Desktop.
Js like clang-format - without leaving off the features from clang-format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlignAfterOpenBracket: BlockIndent | |
AlignArrayOfStructures: Left | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
AlignConsecutiveMacros: true | |
AlignEscapedNewlines: Left | |
AlignOperands: Align | |
AlignTrailingComments: true | |
AllowAllArgumentsOnNextLine: false | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: Empty | |
AllowShortFunctionsOnASingleLine: Empty | |
AllowShortIfStatementsOnASingleLine: Always | |
BinPackArguments: false | |
BinPackParameters: false | |
BreakBeforeBinaryOperators: NonAssignment | |
BreakConstructorInitializers: AfterColon | |
BreakStringLiterals: true | |
ColumnLimit: 80 | |
ConstructorInitializerIndentWidth: 4 | |
ContinuationIndentWidth: 4 | |
Cpp11BracedListStyle: true | |
FixNamespaceComments: false | |
IncludeBlocks: Regroup | |
IncludeCategories: | |
- Regex: '"[[:alnum:]._-]+"' | |
Priority: 1 | |
SortPriority: 1 | |
- Regex: '^((<|").*/)' | |
Priority: 2 | |
SortPriority: 2 | |
- Regex: "<[[:alnum:]._-]+>" | |
Priority: 3 | |
SortPriority: 3 | |
IndentCaseLabels: true | |
IndentPPDirectives: BeforeHash | |
IndentWidth: 4 | |
NamespaceIndentation: All | |
PenaltyReturnTypeOnItsOwnLine: 200 | |
PointerAlignment: Left | |
ReflowComments: True | |
SortIncludes: true | |
SortUsingDeclarations: false | |
SpacesInContainerLiterals: false | |
TabWidth: 4 | |
UseTab: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally from here - https://gist.github.com/nicklasfrahm/4a4fff24381f85ada76ccb651f555e1f