Skip to content

Instantly share code, notes, and snippets.

@mattbanks
Created March 12, 2018 17:48
Show Gist options
  • Save mattbanks/374e6f7b9023a6d6595cbc8742f1aa53 to your computer and use it in GitHub Desktop.
Save mattbanks/374e6f7b9023a6d6595cbc8742f1aa53 to your computer and use it in GitHub Desktop.

Revisions

  1. mattbanks created this gist Mar 12, 2018.
    29 changes: 29 additions & 0 deletions .editorconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    # EditorConfig coding styles definitions. For more information about the
    # properties used in this file, please see the EditorConfig documentation:
    # http://editorconfig.org/

    # indicate this is the root of the project
    root = true

    [*]
    charset = utf-8
    end_of_line = lf
    indent_size = 2
    indent_style = space
    insert_final_newline = true
    trim_trailing_whitespace = true

    [*.{xml,py,java,go,sh}]
    indent_style = tab
    indent_size = 4

    [Makefile]
    indent_style = tab
    indent_size = 4

    [*.json]
    insert_final_newline = false

    [*.md]
    trim_trailing_whitespace = false
    insert_final_newline = false