-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add EditorConfig for consistent editor settings
- Loading branch information
1 parent
7ac5b3d
commit 7649ef7
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |