Skip to content

Commit

Permalink
chore: Add editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-castro committed Nov 9, 2024
1 parent 814a3df commit 60aa1ef
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.
# More information at https://editorconfig.org

root = true

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

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,ts,jsx,tsx,html,css,scss,json,yml,yaml,md}]
charset = utf-8

# 4 space indentation for TypeScript files
[*.ts]
indent_size = 4

# 2 space indentation for YAML files
[*.{yml,yaml}]
indent_size = 2
# 2 space indentation for JSON files
[*.json]
indent_size = 2

# 2 space indentation for Markdown files
[*.md]
indent_size = 2

# 2 space indentation for HTML files
[*.html]
indent_size = 2

# 2 space indentation for CSS and SCSS files
[*.{css,scss}]
indent_size = 2

0 comments on commit 60aa1ef

Please sign in to comment.