Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig — https://editorconfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.{js,jsx,ts,tsx,json,yml,yaml,html,css,scss}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
Comment on lines +15 to +16

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the project uses Prettier to format Markdown files (as configured in the lint:other script in package.json), which defaults to a 2-space indentation, leaving *.md to inherit the default indent_size = 4 from [*] will cause a conflict between the contributor's editor and the formatting checks. Specifying indent_size = 2 for *.md ensures consistency with Prettier.

[*.md]
indent_size = 2
trim_trailing_whitespace = false


[Makefile]
indent_style = tab