Skip to content

Commit

Permalink
editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyclenerd committed Oct 14, 2024
1 parent 3757e4c commit 858ac00
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# EditorConfig is awesome: https://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

# Matches multiple files with brace expansion notation
# Set default charset
[*.{py,ts,js,tf,yml,ts,tsx,mjs,md,js,jsx,svg,json}]
charset = utf-8

# 2 space indentation
[*.{py,ts,js,tf,yml,ts,tsx,mjs,md,js,jsx,svg,json}]
indent_style = space
indent_size = 2

# 4 tab indentation
[*.{pl,sh}]
indent_style = tab
indent_size = 4

# Tab indentation
[Makefile]
indent_style = tab
indent_size = 4

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

0 comments on commit 858ac00

Please sign in to comment.