mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 11:33:51 +00:00
styles: Format CSS with Prettier.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -92,9 +92,9 @@ def run() -> None:
|
||||
description="Sorts Python import statements",
|
||||
check_arg=['--check-only', '--diff'])
|
||||
linter_config.external_linter('prettier', ['node_modules/.bin/prettier', '--check'],
|
||||
['js', 'json', 'ts', 'yaml', 'yml'],
|
||||
['css', 'js', 'json', 'scss', 'ts', 'yaml', 'yml'],
|
||||
fix_arg=['--write'],
|
||||
description="Formats JavaScript and YAML",
|
||||
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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user