File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,15 +13,50 @@ charset = utf-8
1313# Indentation and spacing
1414indent_size = 4
1515tab_width = 4
16- trim_trailing_whitespace = false
16+ trim_trailing_whitespace = true
1717
1818# New line preferences
1919end_of_line = crlf
20- insert_final_newline = false
20+ insert_final_newline = true
2121
2222# Xml files
2323[* .xml ]
2424indent_size = 2
2525
2626[* .{json,yaml,yml} ]
2727indent_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
You can’t perform that action at this time.
0 commit comments