.editorconfig 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. [*.py]
  11. # code formatter accepts length of 120, but editor should prefer 80
  12. max_line_length = 80
  13. [*.html]
  14. # in the jinja templates we use indent size of 2 and we do not use tabs
  15. indent_size = 2
  16. indent_style = space
  17. [*.css]
  18. indent_size = 2
  19. [*.less]
  20. indent_size = 2
  21. [*.js]
  22. indent_size = 2
  23. [*.json]
  24. indent_size = 2
  25. insert_final_newline = ignore
  26. # Minified JavaScript files shouldn't be changed
  27. [**.min.js]
  28. indent_style = ignore
  29. insert_final_newline = ignore
  30. # Makefiles always use tabs for indentation
  31. [Makefile]
  32. indent_style = tab
  33. # Batch files use tabs for indentation
  34. [*.bat]
  35. indent_style = tab
  36. [docs/**.rst]
  37. max_line_length = 79
  38. [*.yml]
  39. indent_size = 2