Last active
March 31, 2023 07:49
-
-
Save zawupf/a83d3d3260c43c12369d242f511caaa3 to your computer and use it in GitHub Desktop.
formatting clang-format editorconfig prettier
This file contains 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
BasedOnStyle: LLVM | |
ColumnLimit: 80 | |
IndentWidth: 2 | |
AlignAfterOpenBracket: Align | |
BinPackParameters: false | |
BinPackArguments: false | |
ConstructorInitializerAllOnOneLineOrOnePerLine: true | |
--- | |
Language: Cpp | |
IndentWidth: 2 | |
ForEachMacros: ['foreach'] | |
# Force pointers to the type for C++. | |
DerivePointerAlignment: false | |
PointerAlignment: Left |
This file contains 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
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
# Change these settings to your own preference | |
indent_style = space | |
indent_size = 4 | |
# We recommend you to keep these unchanged | |
max_line_length = 80 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.{fs,fsx}] | |
fsharp_multiline_bracket_style = stroustrup | |
# fsharp_newline_before_multiline_computation_expression = true | |
[*.md] | |
trim_trailing_whitespace = false |
This file contains 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
module.exports = { | |
printWidth: 80, | |
tabWidth: 2, | |
useTabs: false, | |
semi: false, | |
singleQuote: true, | |
trailingComma: 'all', | |
bracketSpacing: true, | |
jsxBracketSameLine: false, | |
arrowParens: 'avoid', | |
proseWrap: 'always', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment