Skip to content

Instantly share code, notes, and snippets.

@KhalilZaidoun
Created September 25, 2016 18:42
Show Gist options
  • Save KhalilZaidoun/ae7f0735d11557d927e254f6cc71143f to your computer and use it in GitHub Desktop.
Save KhalilZaidoun/ae7f0735d11557d927e254f6cc71143f to your computer and use it in GitHub Desktop.
File setting end-of-line and indentation styles for JavaScript files.
# http://editorconfig.org
# A special property that should be specified at the top of the file outside of
# any sections. Set to true to stop .editor config file search on current file
root = true
[*]
# Indentation style
# Possible values - tab, space
indent_style = space
# Indentation size in single-spaced characters
# Possible values - an integer, tab
indent_size = 2
# Line ending file format
# Possible values - lf, crlf, cr
end_of_line = lf
# File character encoding
# Possible values - latin1, utf-8, utf-16be, utf-16le
charset = utf-8
# Denotes whether to trim whitespace at the end of lines
# Possible values - true, false
trim_trailing_whitespace = true
# Denotes whether file should end with a newline
# Possible values - true, false
insert_final_newline = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment