Skip to content

Instantly share code, notes, and snippets.

@germanfrelo
Last active October 7, 2023 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save germanfrelo/a71698d5c4592220a0fa4915f32182ce to your computer and use it in GitHub Desktop.
Save germanfrelo/a71698d5c4592220a0fa4915f32182ce to your computer and use it in GitHub Desktop.
My local .editorconfig file
# Local .editorconfig file.
# This file should only include settings that affect the physical contents of the file, and that you want enforced in the repository, not just how it appears in an editor.
# Do not include personal preference presentation-only settings (such as `indent_size` or `tab_width`) in this file; those should be specified in a (personal) parent .editorconfig file outside of the repository.
# From editorconfig.org: "when `indent_style` is set to `tab`, it may be desirable to leave `indent_size` unspecified so readers may view the file using their preferred indentation width".
# For more information, see https://blog.danskingdom.com/Reasons-to-use-both-a-local-and-global-editorconfig-file/.
# Top-most EditorConfig file
root = true
# All files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
# Markdown files
[*.md]
# Trailing whitespace is meaningful.
# https://spec.commonmark.org/0.30/#hard-line-breaks
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
# YAML files
[*.{yml,yaml}]
# Tab characters must not be used in indentation:
# - https://yaml.org/faq.html
# - https://yaml.org/spec/1.2.2/#61-indentation-spaces
indent_style = space
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment