Introduce .editorconfig
This commit is contained in:
@@ -1,17 +1,40 @@
|
|||||||
root = true
|
root = true
|
||||||
|
|
||||||
|
# defaults
|
||||||
[*]
|
[*]
|
||||||
charset=utf-8
|
charset=utf-8
|
||||||
end_of_line = lf
|
trim_trailing_whitespace = true
|
||||||
trim_trailing_whitespace=true
|
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
end_of_line=lf
|
||||||
[*.sh]
|
indent_size = 4
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
|
[*.{java, kt, kts}]
|
||||||
|
continuation_indent_size = 4
|
||||||
|
max_line_length=120
|
||||||
|
wildcard_import_limit=99
|
||||||
|
|
||||||
|
[*.xml]
|
||||||
|
continuation_indent_size = 8
|
||||||
|
|
||||||
|
# YAML
|
||||||
|
# http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668
|
||||||
|
[*.{yaml,yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[*.py]
|
# Shell
|
||||||
|
# https://google.github.io/styleguide/shell.xml#Indentation
|
||||||
|
[*.{bash,sh,zsh}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
# HTML
|
||||||
|
# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
|
||||||
|
[*.{htm,html}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_size=2
|
||||||
|
|
||||||
|
# Erlang
|
||||||
|
[*.erl]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = 4
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user