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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-09-14 17:26:22 -07:00 committed by Anders Kaseorg
parent 13fb7875e2
commit 2acc3fbe14

View File

@ -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",