Auto merge of #94 - matthiasbeyer:add-editorconfig, r=matthiasbeyer
Add editorconfig configuration file
Adds a configuration file for editorconfig, which I encourage you all to use when submitting PRs to this project 😄.
This commit is contained in:
commit
f60bb0a31f
1 changed files with 35 additions and 0 deletions
35
.editorconfig
Normal file
35
.editorconfig
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
charset = utf-8
|
||||||
|
|
||||||
|
[*.rs]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
# line length is only supported with vim and emacs
|
||||||
|
max_line_length = 100
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
# Tab indentation for Makefiles
|
||||||
|
indent_style = tab
|
||||||
|
tab_width = 4
|
||||||
|
|
||||||
|
# line length is only supported with vim and emacs
|
||||||
|
max_line_length = 80
|
||||||
|
|
||||||
|
[*.html]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
# line length is only supported with vim and emacs
|
||||||
|
max_line_length = 80
|
||||||
|
|
||||||
|
[*.{md,yaml,yml,nix}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
# line length is only supported with vim and emacs
|
||||||
|
max_line_length = 80
|
||||||
|
|
Loading…
Reference in a new issue