Skip to content

Instantly share code, notes, and snippets.

@garubi
Forked from salcode/.editorconfig
Last active September 1, 2020 11:12
Show Gist options
  • Select an option

  • Save garubi/1a1fd57468bc41588d5d5572964a097a to your computer and use it in GitHub Desktop.

Select an option

Save garubi/1a1fd57468bc41588d5d5572964a097a to your computer and use it in GitHub Desktop.
WordPress .editorconfig - modified version of the WordPress coding standards
# EditorConfig helps keep your project formatting consistent.
# See https://EditorConfig.org
#
# This is a modified version of the WordPress coding standards.
#
# Author: Sal Ferrarello (@salcode)
# https://salferrarello.com/wordpress-editorconfig/
#
# You can download this file directly
# to your project from the command-line with
# curl -O https://gist.githubusercontent.com/garubi/1a1fd57468bc41588d5d5572964a097a/raw/ca0a72853690a9a4f55c93136532a7099a77375f/.editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4
[*.{js,json}]
indent_style = space
indent_size = 2
[*.yml]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[{*.txt,wp-config-sample.php}]
end_of_line = crlf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment