add .editorconfig

This commit is contained in:
Stefan Kalscheuer 2023-04-01 14:26:48 +02:00
parent 7757142237
commit 17c27a7b7c
Signed by: stefan
GPG Key ID: 3887EC2A53B55430
2 changed files with 22 additions and 0 deletions

View File

@ -3,6 +3,7 @@
/assets /assets
/test /test
/.distignore /.distignore
/.editorconfig
/.gitattributes /.gitattributes
/.gitignore /.gitignore
/.travis.yml /.travis.yml

21
.editorconfig Normal file
View File

@ -0,0 +1,21 @@
# 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,*.feature}]
indent_style = space
indent_size = 2
[{*.txt,wp-config-sample.php}]
end_of_line = crlf