Skip to content

Instantly share code, notes, and snippets.

@verdipratama
Created March 2, 2019 06:09
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 verdipratama/a41eac2c9f9f4ca0bb1c2fee758f082b to your computer and use it in GitHub Desktop.
Save verdipratama/a41eac2c9f9f4ca0bb1c2fee758f082b to your computer and use it in GitHub Desktop.
My editorconfig setup
# EditorConfig. Frontend. Default. Namics.
# @see: http://EditorConfig.org
# install a plugin to your editor: http://editorconfig.org/#download
# mark: not all plugins supports the same EditorConfig properties
# This is the top-most .editorconfig file (do not search in parent directories)
root = true
### All files
[*]
# Force charset utf-8
charset = utf-8
# Force Unix-style newlines with a newline ending every file & trim trailing whitespace
end_of_line = crlf
# Indentation
indent_style = tab
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
### Frontend files
[*.{css,scss,less,js,json,ts,sass,php,html,hbs,mustache,phtml,html.twig}]
### Markdown
[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
### YAML
[*.yml]
indent_style = space
indent_size = 2
### Specific files
[{package,bower}.json]
indent_style = space
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment