Skip to content

Instantly share code, notes, and snippets.

@tekapo
Forked from salcode/.editorconfig
Created December 4, 2021 03:26
Show Gist options
  • Save tekapo/8aa3e95e8a650d13f323dd4238e48a3e to your computer and use it in GitHub Desktop.
Save tekapo/8aa3e95e8a650d13f323dd4238e48a3e 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/salcode/285303f7983ad729b74d13d752214f4c/raw/.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