Skip to content

Commit 520d0e9

Browse files
authored
Apply some suggestions
1 parent 90bd0a8 commit 520d0e9

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

Diff for: .editorconfig

+21-8
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,47 @@ indent_style = space
1414
insert_final_newline = true
1515
max_line_length = off
1616
trim_trailing_whitespace = true
17+
curly_bracket_next_line = false
18+
spaces_around_operators = true
1719

18-
; DOS scripts - force CRLF eof
20+
; DOS/Windows batch scripts -
1921
[*.{bat,cmd}]
2022
indent_size = 4
2123
end_of_line = crlf
2224

23-
; JSON files - compress a little more
25+
; JavaScript/TypeScript files -
26+
[*.{js,ts}]
27+
curly_bracket_next_line = true
28+
quote_type = single
29+
30+
; JSON files (normal and commented version) -
2431
[*.{json,jsonc}]
2532
indent_size = 2
33+
quote_type = double
2634

27-
; Make tasks - match defaults according it own syntax
35+
; Make - match it own default syntax
2836
[Makefile]
2937
indent_style = tab
3038

31-
; Markdown files - preserve whitespaces
32-
[*.{md,mkd,mkdn,mdwn,mdown,markdown}]
39+
; Markdown files - preserve trail spaces that means break line
40+
[*.{md,markdown}]
3341
trim_trailing_whitespace = false
3442

3543
; PowerShell - match defaults for New-ModuleManifest and PSScriptAnalyzer Invoke-Formatter
3644
[*.{ps1,psd1,psm1}]
37-
indent_size = 4
3845
charset = utf-8-bom
46+
end_of_line = crlf
47+
indent_size = 4
3948

40-
; Python sources - match defaults according it own syntax
49+
; Python sources - match it own default syntax
4150
[*.py]
4251
indent_size = 4
4352
indent_style = space
4453

45-
; YML config files - match defaults according it own syntax
54+
; Tab separated values - preserve separator
55+
[*.tsv]
56+
indent_style = tab
57+
58+
; YML config files - match it own default syntax
4659
[*.{yaml,yml}]
4760
indent_size = 2

0 commit comments

Comments
 (0)