mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 11:55:51 +00:00 
			
		
		
		
	style: Add prettier pre-commit hook (#2031)
There are 2 things to know about prettier: - it's quite pretty most of the time - it's not configurable
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
Language:        Cpp
 | 
			
		||||
Language: Cpp
 | 
			
		||||
AccessModifierOffset: -4
 | 
			
		||||
AlignAfterOpenBracket: BlockIndent
 | 
			
		||||
AlignConsecutiveAssignments: false
 | 
			
		||||
@@ -22,31 +22,31 @@ BreakBeforeBinaryOperators: false
 | 
			
		||||
BreakBeforeBraces: WebKit
 | 
			
		||||
BreakBeforeTernaryOperators: true
 | 
			
		||||
BreakConstructorInitializersBeforeComma: true
 | 
			
		||||
ColumnLimit:     120
 | 
			
		||||
CommentPragmas:  '^ IWYU pragma:'
 | 
			
		||||
ColumnLimit: 120
 | 
			
		||||
CommentPragmas: "^ IWYU pragma:"
 | 
			
		||||
ConstructorInitializerAllOnOneLineOrOnePerLine: true
 | 
			
		||||
ConstructorInitializerIndentWidth: 4
 | 
			
		||||
ContinuationIndentWidth: 4
 | 
			
		||||
Cpp11BracedListStyle: true
 | 
			
		||||
DerivePointerAlignment: false
 | 
			
		||||
DisableFormat:   false
 | 
			
		||||
DisableFormat: false
 | 
			
		||||
ExperimentalAutoDetectBinPacking: false
 | 
			
		||||
FixNamespaceComments: true
 | 
			
		||||
ForEachMacros:   [ Q_FOREACH,  BOOST_FOREACH ]
 | 
			
		||||
ForEachMacros: [Q_FOREACH, BOOST_FOREACH]
 | 
			
		||||
IncludeBlocks: Regroup
 | 
			
		||||
IncludeCategories:
 | 
			
		||||
  - Regex:           '^".*"$'
 | 
			
		||||
    Priority:        1
 | 
			
		||||
  - Regex:           '^<.*\.(h|hpp)>$'
 | 
			
		||||
    Priority:        2
 | 
			
		||||
  - Regex:           '^<.*>$'
 | 
			
		||||
    Priority:        3
 | 
			
		||||
  - Regex:           '.*'
 | 
			
		||||
    Priority:        4
 | 
			
		||||
IncludeIsMainRegex: '$'
 | 
			
		||||
  - Regex: '^".*"$'
 | 
			
		||||
    Priority: 1
 | 
			
		||||
  - Regex: '^<.*\.(h|hpp)>$'
 | 
			
		||||
    Priority: 2
 | 
			
		||||
  - Regex: "^<.*>$"
 | 
			
		||||
    Priority: 3
 | 
			
		||||
  - Regex: ".*"
 | 
			
		||||
    Priority: 4
 | 
			
		||||
IncludeIsMainRegex: "$"
 | 
			
		||||
IndentCaseLabels: true
 | 
			
		||||
IndentFunctionDeclarationAfterType: false
 | 
			
		||||
IndentWidth:     4
 | 
			
		||||
IndentWidth: 4
 | 
			
		||||
IndentWrappedFunctionNames: false
 | 
			
		||||
IndentRequiresClause: true
 | 
			
		||||
RequiresClausePosition: OwnLine
 | 
			
		||||
@@ -63,18 +63,18 @@ PenaltyExcessCharacter: 1000000
 | 
			
		||||
PenaltyReturnTypeOnItsOwnLine: 200
 | 
			
		||||
PointerAlignment: Left
 | 
			
		||||
QualifierAlignment: Right
 | 
			
		||||
ReflowComments:  true
 | 
			
		||||
SortIncludes:    true
 | 
			
		||||
ReflowComments: true
 | 
			
		||||
SortIncludes: true
 | 
			
		||||
SpaceAfterCStyleCast: false
 | 
			
		||||
SpaceBeforeAssignmentOperators: true
 | 
			
		||||
SpaceBeforeParens: ControlStatements
 | 
			
		||||
SpaceInEmptyParentheses: false
 | 
			
		||||
SpacesBeforeTrailingComments: 2
 | 
			
		||||
SpacesInAngles:  false
 | 
			
		||||
SpacesInAngles: false
 | 
			
		||||
SpacesInContainerLiterals: true
 | 
			
		||||
SpacesInCStyleCastParentheses: false
 | 
			
		||||
SpacesInParentheses: false
 | 
			
		||||
SpacesInSquareBrackets: false
 | 
			
		||||
Standard:        Cpp11
 | 
			
		||||
TabWidth:        8
 | 
			
		||||
UseTab:          Never
 | 
			
		||||
Standard: Cpp11
 | 
			
		||||
TabWidth: 8
 | 
			
		||||
UseTab: Never
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user