Skip to content
Snippets Groups Projects
.editorconfig 733 B
Newer Older
  • Learn to ignore specific revisions
  • Magnus Svensson's avatar
    Magnus Svensson committed
    ; EditorConfig is awesome: https://EditorConfig.org
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    ;top-most EditorConfig file
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    root = true
    
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    ; Ruby style as default
    ; UTF-8 charset
    ; Unix-style newlines with a newline ending every file
    ; 2 space indent
    ; Trim trailing whitespace
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    [*]
    indent_style = space
    indent_size = 2
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    end_of_line = lf
    charset = utf-8
    trim_trailing_whitespace = true
    insert_final_newline = true
    
    ; Markdown
    ; 4 space indent
    ; Trailing whitespace is potentially meaningful, leave it
    [*.md]
    indent_size = 4
    trim_trailing_whitespace = false
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    ; Shell scripts & Python
    ; 4 space indent
    [*.{sh,py}]
    indent_size = 4
    
    [Makefile]
    indent_style = tab
    
    ; The JSON files contain newlines inconsistently
    
    Magnus Svensson's avatar
    Magnus Svensson committed
    [*.json]
    insert_final_newline = ignore
    
    [*.{ps1,psm1}]
    indent_size = 4