Skip to content

Instantly share code, notes, and snippets.

@krnd
Last active July 2, 2021 17:50
Show Gist options
  • Save krnd/c30eb12309f1876171918787097dd250 to your computer and use it in GitHub Desktop.
Save krnd/c30eb12309f1876171918787097dd250 to your computer and use it in GitHub Desktop.
editorconfig
# .editorconfig
#
# AUTHOR
# krnd
#
# VERSION
# 1.1
#
# SEE ALSO
# https://editorconfig.org/#file-format-details
# https://gist.github.com/krnd
#
################### DEFAULTS ###############################
# Top-level configuration file
root = true
# Default configuration
[*]
indent_style = space
indent_size = 4
tab_width = indent_size
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Limited editor support
max_line_length = off
################### FILETYPE ###############################
########## INI ##########
[{*.ini, .editorconfig}]
indent_size = 4
########## JavaScript ##########
[*.{js,jsdoc}]
indent_size = 2
########## JSON ##########
[*.json]
indent_size = 4
########## Markdown ##########
[*.md]
indent_size = 4
########## Python ##########
[*.py]
indent_size = 4
########## YAML ##########
[{*.{yml, yaml}, .eslintrc}]
indent_size = 2
################### SPECIAL FILES ##########################
########## gitignore ##########
[{.gitignore, .eslintignore}]
indent_size = 2
##### makefile #####
[[Mm]akefile]
indent_size = 4
indent_style = tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment