From 2acc3fbe14819bf3a266def6274de1555dfd78ed Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 14 Sep 2020 17:26:22 -0700 Subject: [PATCH] lint: Use prettier --loglevel=warn for quiet output. Signed-off-by: Anders Kaseorg --- tools/lint | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/lint b/tools/lint index cc6506d060..5cd183456d 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",