.editorconfig 677 B

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