.editorconfig 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # EditorConfig helps developers define and maintain consistent
  2. # coding styles between different editors and IDEs
  3. # editorconfig.org
  4. ; top-most EditorConfig file
  5. root = true
  6. ; define basic and global for any file
  7. [*]
  8. charset = utf-8
  9. end_of_line = lf
  10. indent_size = 4
  11. indent_style = space
  12. insert_final_newline = true
  13. max_line_length = off
  14. trim_trailing_whitespace = true
  15. curly_bracket_next_line = false
  16. spaces_around_operators = true
  17. ; DOS/Windows batch scripts -
  18. [*.{bat,cmd}]
  19. end_of_line = crlf
  20. ; JavaScript files -
  21. [*.{js,ts}]
  22. curly_bracket_next_line = true
  23. quote_type = single
  24. ; JSON files (normal and commented version) -
  25. [*.{json,jsonc}]
  26. indent_size = 2
  27. quote_type = double
  28. ; Make - match it own default syntax
  29. [Makefile]
  30. indent_style = tab
  31. ; Markdown files - preserve trail spaces that means break line
  32. [*.{md,markdown}]
  33. trim_trailing_whitespace = false
  34. ; PowerShell - match defaults for New-ModuleManifest and PSScriptAnalyzer Invoke-Formatter
  35. [*.{ps1,psd1,psm1}]
  36. charset = utf-8-bom
  37. end_of_line = crlf
  38. ; YML config files - match it own default syntax
  39. [*.{yaml,yml}]
  40. indent_size = 2