-
-
Save cyberwani/0b74b7dba0993bd630d3a7dc797c67da to your computer and use it in GitHub Desktop.
WordPress .editorconfig - modified version of the WordPress coding standards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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