Skip to content

Instantly share code, notes, and snippets.

@zonuexe
Created November 30, 2016 06:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zonuexe/772e3df896e03d8eded7594b17d09469 to your computer and use it in GitHub Desktop.
Save zonuexe/772e3df896e03d8eded7594b17d09469 to your computer and use it in GitHub Desktop.
editorconfig
# 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
charset = utf-8
# CoffeeScript - http://coffeescript.org/
[*.coffee]
indent_style = space
indent_size = 2
# Handlebars.js - http://handlebarsjs.com/
[*.hbs]
indent_style = tab
# JavaScript - https://developer.mozilla.org/ja/docs/Web/JavaScript
[*.js]
indent_style = tab
# JSON - http://json.org/
# Composer - https://getcomposer.org/doc/04-schema.md
[{*.json,composer.lock}]
indent_style = space
indent_size = 4
# NPM - https://docs.npmjs.com/files/package.json
# Stylint - https://rosspatton.github.io/stylint/
[{package.json,.stylintrc}]
indent_style = space
indent_size = 2
# PHP - http://php.net/
[*.php]
indent_style = space
indent_size = 4
# Python - https://www.python.org/
[*.py]
indent_style = space
indent_size = 4
# Ruby - https://www.ruby-lang.org/
# Rake - https://github.com/ruby/rake
[{*.rb,*.rake,Rakefile}]
indent_style = space
indent_size = 2
# Sass(SCSS) - http://sass-lang.com/
[*.scss]
indent_style = tab
# Shell script (bash) - https://www.gnu.org/software/bash/manual/bash.html
[*.sh]
indent_style = space
indent_size = 4
# SQL (MySQL) - https://www.mysql.com/
[*.sql]
indent_style = space
indent_size = 2
# Stylus - https://learnboost.github.io/stylus/
[*.styl]
indent_style = space
indent_size = 2
# Smarty 2 -http://www.smarty.net/docsv2/en/
[*.tpl]
indent_style = tab
# XHTML - http://www.w3.org/TR/xhtml1/
[*.xhtml]
indent_style = space
indent_size = 4
# YAML - http://yaml.org/
[{*.yml,*.yaml}]
indent_style = space
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment