You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
872 B

  1. # EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
  2. # editorconfig.org
  3. root = true
  4. [*]
  5. end_of_line = lf
  6. indent_style = space
  7. indent_size = 4
  8. charset = utf-8
  9. trim_trailing_whitespace = true
  10. insert_final_newline = true
  11. [{*.yaml,*.yml}] # To match GitHub Actions formatting
  12. indent_size = 2
  13. [*.md]
  14. trim_trailing_whitespace = false
  15. [{Makefile,*.mk}]
  16. indent_style = tab
  17. # Don't override anything in `lib/`...
  18. [lib/**]
  19. indent_style = unset
  20. indent_size = unset
  21. tab_width = unset
  22. end_of_line = unset
  23. charset = unset
  24. spelling_language = unset
  25. trim_trailing_whitespace = unset
  26. insert_final_newline = unset
  27. # ...except QMK's `lib/python`.
  28. [{*.py,lib/python/**.py}]
  29. end_of_line = lf
  30. indent_style = space
  31. indent_size = 4
  32. charset = utf-8
  33. trim_trailing_whitespace = true
  34. insert_final_newline = true
  35. max_line_length = 200