.editorconfig 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. trim_trailing_whitespace = true
  8. insert_final_newline = true
  9. tab_width = 2
  10. charset = utf-8
  11. # 4 space indentation
  12. [*.py]
  13. indent_style = space
  14. indent_size = 4
  15. # Tab indentation (no size specified)
  16. [Makefile]
  17. indent_style = tab
  18. [build.gradle]
  19. indent_style = tab
  20. # Matches the exact files either package.json or .travis.yml
  21. [{package.json,.travis.yml}]
  22. indent_style = space
  23. indent_size = 2
  24. [**.js]
  25. indent_style = tab
  26. indent_size = 2
  27. ; Path to the external file format
  28. ; The default is taken from the lib folder inside the folder extension.
  29. path=~/.vim/bundle/js-beautify/js/lib/beautify.js
  30. ; Javascript interpreter to be invoked by default 'node'
  31. bin=node
  32. [**.json]
  33. indent_style = tab
  34. indent_size = 2
  35. [**.jsx]
  36. e4x = true
  37. indent_style = tab
  38. indent_size = 2
  39. [**.css]
  40. indent_style = tab
  41. indent_size = 2
  42. path=~/.vim/bundle/js-beautify/js/lib/beautify-css.js
  43. [**.html]
  44. indent_style = tab
  45. indent_size = 2
  46. max_char = 78
  47. brace_style = expand
  48. ; Using special comments
  49. ; And such comments or apply only in global configuration
  50. ; So it's best to avoid them
  51. ;vim:path=~/.vim/bundle/js-beautify/js/lib/beautify-html.js
  52. ;vim:max_char=78:brace_style=expand