h1mal
8/25/2017 - 8:17 AM

my_default.editorconfig

# EditorConfig is awesome: http://EditorConfig.org
# Heinz J. Malcharzyk, 2017-08-25

# I am ROOT
root = true

# BASIC CONFIG
# Covers all the others.
# Including CoffeeScript, CSS Lint, Java, Lua, Ruby, Shell Scripts, and XML
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

# JAVASCRIPT, HTML, CSS
# http://contribute.jquery.org/style-guide/
[*.{js,json}]
indent_style = tab
indent_size = tab
tab_width = 4
# "Lines should be no longer than 80 characters, and must not exceed 100 (counting tabs as 4 spaces)."
max_line_length = 100

[*.{html,htm,haml}]
indent_style = tab
indent_size = tab
tab_width = 4

[*.{css,sass,scss,styl}]
indent_style = tab
indent_size = tab
tab_width = 4

# Go
[*.go]
indent_size = 4
indent_style = space

# PHP-PSR 2[*.{php,php3,php4,php5,phtml,phps}]
indent_style = space
indent_size = 4
# max_line_length = 80
max_line_length = 130
# https://docs.typo3.org/typo3cms/CodingGuidelinesReference/PhpFileFormatting/GeneralRequirementsForPhpFiles/Index.html

# PERL
# http://perldoc.perl.org/perlstyle.html
[*.{pl,pm,pod,t}]
indent_style = space
indent_size = 4

# PYTHON
# https://www.python.org/dev/peps/pep-0008/
[*.py]
indent_style = space
indent_size = 4
max_line_length = 79

# Markdown
[*.{md,markdown}]
indent_size = 4
indent_style = space
trim_trailing_whitespace = false

# reStructuredText
[*.rst]
indent_size = 4
indent_style = space

# Textile
[*.textile]
indent_style = tab
indent_size = tab
tab_width = 2

# Plain Text
[*.txt]
indent_size = 4
indent_style = tab

# On Linux / macOS, suffix Windows text files .win.txt
[*.{win.txt,bat}]
charset = latin1
end_of_line = crlf
indent_size = 4
indent_style = tab

# Nodejs
[package.json]
indent_size = 2
indent_style = space

# Minified Files
[*.min.{css,js}]
indent_style = ignore
insert_final_newline = ignore