Skip to content

Commit 0ce7e2f

Browse files
committed
style: add editorconfig
1 parent 3b8b3a4 commit 0ce7e2f

1 file changed

Lines changed: 37 additions & 2 deletions

File tree

.editorconfig

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,50 @@ charset = utf-8
1313
# Indentation and spacing
1414
indent_size = 4
1515
tab_width = 4
16-
trim_trailing_whitespace = false
16+
trim_trailing_whitespace = true
1717

1818
# New line preferences
1919
end_of_line = crlf
20-
insert_final_newline = false
20+
insert_final_newline = true
2121

2222
# Xml files
2323
[*.xml]
2424
indent_size = 2
2525

2626
[*.{json,yaml,yml}]
2727
indent_size = 2
28+
29+
# JavaScript and TypeScript files
30+
[*.{js,ts}]
31+
indent_style = space
32+
indent_size = 4
33+
end_of_line = lf
34+
trim_trailing_whitespace = true
35+
insert_final_newline = true
36+
37+
# Python files
38+
[*.{py,pypy,pyx}]
39+
indent_style = space
40+
indent_size = 4
41+
trim_trailing_whitespace = true
42+
insert_final_newline = true
43+
max_line_length = 88
44+
45+
# JSON files
46+
[*.json]
47+
indent_style = space
48+
indent_size = 2
49+
end_of_line = lf
50+
trim_trailing_whitespace = true
51+
insert_final_newline = true
52+
53+
# YAML files
54+
[*.{yaml,yml}]
55+
indent_style = space
56+
indent_size = 2
57+
end_of_line = lf
58+
trim_trailing_whitespace = true
59+
insert_final_newline = true
60+
61+
[*]
62+
max_line_length = 120

0 commit comments

Comments
 (0)