Skip to content

Instantly share code, notes, and snippets.

@tangoabcdelta
Last active January 4, 2021 10:29
Show Gist options
  • Save tangoabcdelta/3a56f1826902215be2cacc4cc2ce958f to your computer and use it in GitHub Desktop.
Save tangoabcdelta/3a56f1826902215be2cacc4cc2ce958f to your computer and use it in GitHub Desktop.
Much forgotten Editor Config file
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
# Wildcard Patterns
# Special characters recognized in section names for wildcard matching:
#
# * Matches any string of characters, except path separators (/)
# ** Matches any string of characters
# ? Matches any single character
# [name] Matches any single character in name
# [!name] Matches any single character not in name
# {s1,s2,s3} Matches any of the strings given (separated by commas) (Available since EditorConfig Core 0.11.0)
# {num1..num2} Matches any integer numbers between num1 and num2, where num1 and num2 can be either positive or negative
# supported properties
# visit https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties to see a list of supported properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment