From 17c27a7b7c714f011af9e8d17f410d051fea49e6 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 1 Apr 2023 14:26:48 +0200 Subject: [PATCH] add .editorconfig --- .distignore | 1 + .editorconfig | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .editorconfig diff --git a/.distignore b/.distignore index 5ac45df..c101a74 100644 --- a/.distignore +++ b/.distignore @@ -3,6 +3,7 @@ /assets /test /.distignore +/.editorconfig /.gitattributes /.gitignore /.travis.yml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2c1036d --- /dev/null +++ b/.editorconfig @@ -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