diff --git a/.editorconfig b/.editorconfig index 905df9a617..374da0b5d2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -22,7 +22,9 @@ indent_size = 2 indent_size = 4 indent_style = space -[*.md] +# Markdown and MDX are whitespace sensitive languages. +# Do not remove trailing spaces. +[*.{md,mdx}] trim_trailing_whitespace = false # Matches multiple files with brace expansion notation @@ -31,7 +33,7 @@ trim_trailing_whitespace = false indent_style = space indent_size = 2 -# Matches the exact files either package.json or .travis.yml -[{package.json,.travis.yml}] +# Matches the exact files package.json +[package.json] indent_style = space indent_size = 2 diff --git a/.github/linters/editorconfig-checker.json b/.github/linters/editorconfig-checker.json index 7072dfea81..ce6e9ae341 100644 --- a/.github/linters/editorconfig-checker.json +++ b/.github/linters/editorconfig-checker.json @@ -4,7 +4,11 @@ "IgnoreDefaults": false, "SpacesAfterTabs": false, "NoColor": false, - "Exclude": [], + "Exclude": [ + "^web/public/vs/", + "^web/public/pdf.worker.min.mjs$", + "web/app/components/base/icons/src/vender/" + ], "AllowedContentTypes": [], "PassedFiles": [], "Disable": {