Skip to content

Instantly share code, notes, and snippets.

@gbalbuena
Created May 4, 2020 22:52
Show Gist options
  • Save gbalbuena/e6ccf9824d1030f4753b2d3b3164ed73 to your computer and use it in GitHub Desktop.
Save gbalbuena/e6ccf9824d1030f4753b2d3b3164ed73 to your computer and use it in GitHub Desktop.
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_size = 2
indent_style = space
max_line_length = 80
# python java r
# 4 space indentation
[*.{py,java,r,R}]
indent_style = space
indent_size = 4
# 2 space indentation
[*.{js,json,y{a,}ml,html,cwl}]
indent_style = space
indent_size = 2
[*.{md,Rmd,rst}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
# terraform
[*.{tf,tfvars}]
indent_size = 4
indent_style = space
# markdown
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
# Tab indentation (no size specified)
[Makefile]
tab_width = 2
indent_style = tab
[COMMIT_EDITMSG]
max_line_length = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment