Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lint: Use prettier --loglevel=warn for quiet output.

Anders Kaseorg2acc3fbe1481
diff --git a/tools/lint b/tools/lint
index cc6506d0603..5cd183456dd 100755
--- a/tools/lint
+++ b/tools/lint
@@ -91,12 +91,10 @@ def run() -> None:
linter_config.external_linter('isort', ['isort'], ['py'],
description="Sorts Python import statements",
check_arg=['--check-only', '--diff'])
- linter_config.external_linter('prettier', ['node_modules/.bin/prettier', '--check'],
+ linter_config.external_linter('prettier', ['node_modules/.bin/prettier', '--check', '--loglevel=warn'],
['css', 'js', 'json', 'scss', 'ts', 'yaml', 'yml'],
fix_arg=['--write'],
- description="Formats CSS, JavaScript, YAML",
- # https://github.com/prettier/prettier/pull/8703
- suppress_line=lambda line: line in ["Checking formatting...\n", "All matched files use Prettier code style!\n"])
+ description="Formats CSS, JavaScript, YAML")
semgrep_command = ["semgrep", "--config=./tools/semgrep.yml", "--error",
"--disable-version-check", "--quiet",