mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
lint: Use prettier --loglevel=warn for quiet output.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
13fb7875e2
commit
2acc3fbe14
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user