.editorconfig 724 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # .editorconfig
  2. # https://editorconfig.org/
  3. # top-most EditorConfig file
  4. root = true
  5. # Unix-style newlines with a newline ending every file
  6. [*]
  7. end_of_line = lf
  8. insert_final_newline = true
  9. [*.{html,svg,json}]
  10. indent_style = space
  11. indent_size = 2
  12. # Matches multiple files with brace expansion notation
  13. # Set default charset
  14. [*.{js,py}]
  15. charset = utf-8
  16. # 4 space indentation
  17. [*.py]
  18. indent_style = space
  19. indent_size = 4
  20. # Tab indentation (no size specified)
  21. [Makefile]
  22. indent_style = tab
  23. # Indentation override for all JS under lib directory
  24. [lib/**.js]
  25. indent_style = space
  26. indent_size = 2
  27. # Matches the exact files either package.json or .travis.yml
  28. [{package.json,.travis.yml}]
  29. indent_style = space
  30. indent_size = 2