.editorconfig 806 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # https://editorconfig.org/
  2. root = true
  3. [*]
  4. indent_style = space
  5. indent_size = 4
  6. insert_final_newline = true
  7. trim_trailing_whitespace = true
  8. end_of_line = lf
  9. charset = utf-8
  10. # Docstrings and comments use max_line_length = 79
  11. [*.py]
  12. max_line_length = 88
  13. # Use 2 spaces for the HTML files
  14. [*.html]
  15. indent_size = 2
  16. # The JSON files contain newlines inconsistently
  17. [*.json]
  18. indent_size = 2
  19. insert_final_newline = ignore
  20. [**/admin/js/vendor/**]
  21. indent_style = ignore
  22. indent_size = ignore
  23. # Minified JavaScript files shouldn't be changed
  24. [**.min.js]
  25. indent_style = ignore
  26. insert_final_newline = ignore
  27. # Makefiles always use tabs for indentation
  28. [Makefile]
  29. indent_style = tab
  30. # Batch files use tabs for indentation
  31. [*.bat]
  32. indent_style = tab
  33. [docs/**.txt]
  34. max_line_length = 79
  35. [*.yml]
  36. indent_size = 2