-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(setup): add editorconfig (#2480)
- Loading branch information
1 parent
740718f
commit 3b8bf2c
Showing
1 changed file
with
42 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,42 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
# indent_style = space | ||
# indent_size = 4 | ||
|
||
[*.css] | ||
indent_style = tab | ||
|
||
[*.{coffee,js,jsx,ts,tsx}] | ||
indent_style = tab | ||
indent_size = 4 | ||
max_line_length = 96 | ||
|
||
[*.json] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.go] | ||
max_line_length = 96 | ||
indent_style = tab | ||
|
||
[*.py] | ||
max_line_length = 80 | ||
# tabs are allowed, but spaces is a pep8 convention... //indent_style = tab | ||
|
||
[*.sol] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.sql] | ||
indent_style = tab | ||
|
||
[*.{md,rst}] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{html,mako,less,org}] | ||
indent_style = tab |