Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Created July 8, 2017 00:18
Show Gist options
  • Save ethangardner/6e163342f2bb053a446cc2f7965e51d8 to your computer and use it in GitHub Desktop.
Save ethangardner/6e163342f2bb053a446cc2f7965e51d8 to your computer and use it in GitHub Desktop.
# Based on https://develop.svn.wordpress.org/trunk/.editorconfig
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
[{.jshintrc,*.json,*.yml,*.scss,*.lock}]
indent_style = space
indent_size = 2
[{*.txt,wp-config-sample.php}]
end_of_line = crlf
[{phpunit.xml.dist,composer.{json,lock}}]
indent_style = space
indent_size = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment