From bc8aa2a9c3336c4f8cd27c6950ff4f333992ae91 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Tue, 29 Apr 2025 14:45:51 +0800 Subject: [PATCH] chore: adjust editorconfig rules and linting configurations - remove rule for .travis.yml} - exclude `^web/public/vs/` in editorconfig-checker --- .editorconfig | 8 +++++--- .github/linters/editorconfig-checker.json | 6 +++++- 2 files changed, 10 insertions(+), 4 deletions(-) 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": {