Skip to content

Commit

Permalink
chore: add EditorConfig for consistent editor settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-kashkoush committed Nov 8, 2024
1 parent 7ac5b3d commit 7649ef7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# EditorConfig is awesome: https://editorconfig.org
# Top-most EditorConfig file
root = true

# Generic settings for all files
[*]
# Indentation
indent_style = space
indent_size = 2

# Line endings
end_of_line = lf

# Character encoding
charset = utf-8

# Trim trailing whitespace
trim_trailing_whitespace = true

# Insert final newline at the end of each file
insert_final_newline = true

# Settings for JavaScript and JSX files
[*.{js,jsx}]
indent_size = 2

# Settings for JSON files
[*.json]
indent_style = space
indent_size = 2

# Settings for Markdown files
[*.md]
trim_trailing_whitespace = false

# Settings for YAML files
[*.yml]
indent_style = space
indent_size = 2

0 comments on commit 7649ef7

Please sign in to comment.