Skip to content

Instantly share code, notes, and snippets.

@mminguezz
Forked from JamesMGreene/.editorconfig
Last active December 27, 2017 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mminguezz/de5eb5c148723e9a286831e41d799e83 to your computer and use it in GitHub Desktop.
Save mminguezz/de5eb5c148723e9a286831e41d799e83 to your computer and use it in GitHub Desktop.
Example EditorConfig file
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
# Find Plugin
# http://editorconfig.org/#download
# Install tools
# ```npm install -g editorconfig-tools```
# run ```editorconfig-tools fix **/*```
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
[{*.txt, Makefile, *.md}]
indent_style = tab
indent_size = 4
[*.{diff,md}]
trim_trailing_whitespace = false
[{package.json,.travis.yml,*.pug}]
indent_style = space
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment