Last active
August 31, 2024 05:04
-
-
Save huaminghuangtw/002e7e61ec137b1c184915694f12c2cf to your computer and use it in GitHub Desktop.
My .editorconfig Template
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
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs | |
# https://EditorConfig.org | |
# Use top-most EditorConfig file | |
root = true | |
[*] | |
# Unix-style newlines at the bottom of every file | |
end_of_line = lf | |
charset = utf-8 | |
# Remove any whitespace characters preceding newline characters | |
trim_trailing_whitespace = true | |
insert_final_newline = false | |
# Tab indentation | |
indent_style = space | |
indent_size = 4 | |
# Give operators breathing room, but not brackets | |
spaces_around_operators = true | |
spaces_around_brackets = false | |
[.js] | |
quote_type = single | |
curly_bracket_next_line = false | |
[.html] | |
quote_type = double | |
[*.{diff, md}] | |
trim_trailing_whitespace = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment