Skip to content

Commit

Permalink
Changed .editorconfig for WordPress coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
garikhg committed Aug 22, 2023
1 parent 4c4ccc0 commit dca2d88
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
# 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
indent_size = 4
tab_width = 4
indent_style = tab
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.md]
[*.txt]
trim_trailing_whitespace = false

[*.php]
[*.{md,yml}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf

[resources/views/**.php]
indent_size = 2
[*.json]
indent_style = tab

0 comments on commit dca2d88

Please sign in to comment.