diff --git a/.editorconfig b/.editorconfig
index 5f8702cf892191ec0c86ad5c16c6332daedb841d..b5217da4af0f5a6bae373bc943e31aad1e8b7ec3 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -10,3 +10,4 @@ insert_final_newline = true
 charset = utf-8
 indent_style = space
 indent_size = 2
+trim_trailing_whitespace = true