From 9090fb41a19664b312aa8ae2d71b19af4595fbb2 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Fri, 16 Nov 2018 10:42:56 -0500 Subject: [PATCH] Add .editorconfig file for editor integration (https://github.com/woocommerce/woocommerce-blocks/pull/128) --- plugins/woocommerce-blocks/.editorconfig | 24 ++++++++++++++++++++ plugins/woocommerce-blocks/webpack.config.js | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce-blocks/.editorconfig diff --git a/plugins/woocommerce-blocks/.editorconfig b/plugins/woocommerce-blocks/.editorconfig new file mode 100644 index 00000000000..c3dfa83750f --- /dev/null +++ b/plugins/woocommerce-blocks/.editorconfig @@ -0,0 +1,24 @@ +# 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 +trim_trailing_whitespace = true + +[*.txt] +trim_trailing_whitespace = false + +[*.{md,json,yml}] +trim_trailing_whitespace = false +indent_style = space +indent_size = 2 diff --git a/plugins/woocommerce-blocks/webpack.config.js b/plugins/woocommerce-blocks/webpack.config.js index 475b99a7250..a68456cb941 100644 --- a/plugins/woocommerce-blocks/webpack.config.js +++ b/plugins/woocommerce-blocks/webpack.config.js @@ -1,4 +1,3 @@ -/** @format */ /** * External dependencies */