Skip to content

config: update .editorconfig parameters according to current format of files #6696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 16, 2022
44 changes: 39 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,47 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

; top-most EditorConfig file
root = true

; define basic and global for any file
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = off
trim_trailing_whitespace = true

[*.md]
; DOS scripts - force CRLF eof
[*.{bat,cmd}]
indent_size = 4
end_of_line = crlf

; JSON files - compress a little more
[*.{json,jsonc}]
indent_size = 2

; Make tasks - match defaults according it own syntax
[Makefile]
indent_style = tab

; Markdown files - preserve whitespaces
[*.{md,mkd,mkdn,mdwn,mdown,markdown}]
trim_trailing_whitespace = false

; PowerShell - match defaults for New-ModuleManifest and PSScriptAnalyzer Invoke-Formatter
[*.{ps1,psd1,psm1}]
indent_size = 4
charset = utf-8-bom

; Python sources - match defaults according it own syntax
[*.py]
indent_size = 4
indent_style = space

; YML config files - match defaults according it own syntax
[*.{yaml,yml}]
indent_size = 2