From bcdc8958a13afef52a8040b69f651aba89cdc195 Mon Sep 17 00:00:00 2001 From: Adaline Valentina Simonian Date: Wed, 16 Jun 2021 16:28:45 -0700 Subject: [PATCH] chore(editorcfg): keep eol whitespace in tests (#11007) Keep editor from removing trailing whitespace in format test files and snapshots. --- .editorconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.editorconfig b/.editorconfig index 1cbc8fe300ad..58db511587d7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,3 +14,9 @@ insert_final_newline = false [website/blog/*.md] trim_trailing_whitespace = false + +[tests/{**/__snapshots__/*, tests/format/**/*}] +trim_trailing_whitespace = false + +[tests/format/**/jsfmt.spec.js] +trim_trailing_whitespace = true