Created
August 20, 2018 14:21
-
-
Save bananaappletw/c852f1dd11f10f58e4e20c798af54825 to your computer and use it in GitHub Desktop.
General Editorconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EditorConfig is awesome: http://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 | |
trim_trailing_whitespace = true | |
# Set default charset | |
charset = utf-8 | |
# using space to replace tab | |
indent_style = space | |
# Width 4 of a single tabstop character | |
tab_width= 4 | |
# JSON/YML | |
# 2 space indentation | |
[*.{json,yml}] | |
indent_style = space | |
indent_size = 2 | |
# Markdown | |
[*.md] | |
trim_trailing_whitespace = false | |
# Bash | |
# https://google.github.io/styleguide/shell.xml#Indentation | |
# 2 space indentation | |
[*.sh] | |
indent_style = space | |
indent_size = 2 | |
# C/C++/header files | |
# https://google.github.io/styleguide/cppguide.html#Spaces_vs._Tabs | |
# 2 space indentation | |
[*.{c,cpp,h,hpp}] | |
indent_style = space | |
indent_size = 2 | |
# Makefile | |
# Tab indentation (no size specified) | |
[Makefile] | |
indent_style = tab | |
# Java | |
# https://google.github.io/styleguide/javaguide.html#s4.2-block-indentation | |
# https://google.github.io/styleguide/javaguide.html#s4.5.2-line-wrapping-indent | |
[*.java] | |
indent_style = space | |
indent_size = 2 | |
continuation_indent_size = 4 | |
# Ruby | |
# https://github.com/github/rubocop-github/blob/master/STYLEGUIDE.md | |
[*.{rb,erb}] | |
# 2 space indentation | |
indent_style = space | |
indent_size = 2 | |
# Python | |
# https://www.python.org/dev/peps/pep-0008/#indentation | |
# 4 space indentation | |
[*.py] | |
indent_style = space | |
indent_size = 4 | |
# Golang | |
# https://golang.org/cmd/gofmt/ | |
# Tab indentation (no size specified) | |
[*.go] | |
indent_style = tab | |
# HTML | |
# https://www.w3schools.com/html/html5_syntax.asp | |
[*.html] | |
# 2 space indentation | |
indent_style = space | |
indent_size = 2 | |
# CSS/SASS/SCSS/LESS | |
# https://www.drupal.org/docs/develop/standards/css/css-formatting-guidelines#whitespace | |
[*.{css,sass,scss,less}] | |
# 2 space indentation | |
indent_style = space | |
indent_size = 2 | |
# Javascript | |
# https://standardjs.com/ | |
# 2 space indentation | |
[*.js] | |
indent_style = space | |
indent_size = 2 | |
# Vue | |
# https://github.com/vuejs/eslint-plugin-vue/blob/master/.editorconfig | |
# 2 space indentation | |
[*.vue] | |
indent_style = space | |
indent_size = 2 | |
# Angular | |
# https://github.com/angular/angular/blob/master/.editorconfig | |
# 2 space indentation | |
[*.ts] | |
indent_style = space | |
indent_size = 2 | |
# JSX | |
# https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md | |
# 4 space indentation | |
[*.jsx] | |
indent_style = space | |
indent_size = 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment