2022-03-16 19:45:02 +00:00
|
|
|
# EditorConfig helps developers define and maintain consistent
|
|
|
|
# coding styles between different editors and IDEs
|
2014-05-22 16:54:24 +00:00
|
|
|
# editorconfig.org
|
2022-03-16 19:45:02 +00:00
|
|
|
|
|
|
|
; top-most EditorConfig file
|
2014-05-22 16:54:24 +00:00
|
|
|
root = true
|
|
|
|
|
2022-03-16 19:45:02 +00:00
|
|
|
; define basic and global for any file
|
2014-05-22 16:54:24 +00:00
|
|
|
[*]
|
|
|
|
charset = utf-8
|
2022-03-16 19:45:02 +00:00
|
|
|
end_of_line = lf
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
2014-05-22 16:54:24 +00:00
|
|
|
insert_final_newline = true
|
2022-03-16 19:45:02 +00:00
|
|
|
max_line_length = off
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
curly_bracket_next_line = false
|
|
|
|
spaces_around_operators = true
|
|
|
|
|
|
|
|
; DOS/Windows batch scripts -
|
|
|
|
[*.{bat,cmd}]
|
|
|
|
end_of_line = crlf
|
|
|
|
|
|
|
|
; JavaScript files -
|
|
|
|
[*.{js,ts}]
|
|
|
|
curly_bracket_next_line = true
|
|
|
|
quote_type = single
|
|
|
|
|
|
|
|
; JSON files (normal and commented version) -
|
|
|
|
[*.{json,jsonc}]
|
|
|
|
indent_size = 2
|
|
|
|
quote_type = double
|
2014-05-22 16:54:24 +00:00
|
|
|
|
2022-03-16 19:45:02 +00:00
|
|
|
; Make - match it own default syntax
|
|
|
|
[Makefile]
|
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
; Markdown files - preserve trail spaces that means break line
|
|
|
|
[*.{md,markdown}]
|
2014-05-22 16:54:24 +00:00
|
|
|
trim_trailing_whitespace = false
|
2022-03-16 19:45:02 +00:00
|
|
|
|
|
|
|
; PowerShell - match defaults for New-ModuleManifest and PSScriptAnalyzer Invoke-Formatter
|
|
|
|
[*.{ps1,psd1,psm1}]
|
|
|
|
charset = utf-8-bom
|
|
|
|
end_of_line = crlf
|
|
|
|
|
|
|
|
; YML config files - match it own default syntax
|
|
|
|
[*.{yaml,yml}]
|
|
|
|
indent_size = 2
|