forked from fauxpilot/fauxpilot
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.editorconfig
59 lines (49 loc) · 1.34 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
tab_width = 4
# end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
# Markdown
[*.{md}]
indent_style = space
indent_size = 2
insert_final_newline = true
# Serialized data
[*.{yml,yaml,json,pbtxt}]
indent_style = space
indent_size = 2
insert_final_newline = true
# Shell script
[*.{sh,bash,bashrc,zsh,fish,ksh,csh}]
indent_style = space
indent_size = 4
insert_final_newline = true
# PowerShell
# Windows PowerShell (aka. PowerShell 5.*) may misinterprets your script as being encoded in the legacy "ANSI" codepage. Conversely, files that do have the UTF-8 BOM can be problematic on Unix-like platforms. Many Unix tools such as cat, sed, awk, and some editors such as gedit don't know how to treat the BOM.
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding
charset = utf-8
# space and indent
indent_style = space
indent_size = 4
# newline
insert_final_newline = true
# Python
[*.py]
indent_style = space
indent_size = 4
insert_final_newline = true
# Environment
[*.env]
insert_final_newline = false
# Python requirements
[requirements.txt]
insert_final_newline = true
# Dockerfile
[Dockerfile]
insert_final_newline = true