Skip to content

Commit

Permalink
cfg: add .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
branylagaffe committed Jul 31, 2024
1 parent 8b8e38d commit f905d40
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = false

# Unix-style newlines with a newline ending every file
[*]
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# Matches the exact files either package.json or .travis.yml
[*.{json,yml,yaml,toml}]
indent_style = space
indent_size = 2

0 comments on commit f905d40

Please sign in to comment.