styles: Format CSS with Prettier.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-08-04 21:58:56 +00:00
parent 6c0afbb68d
commit c6ed5c81de
38 changed files with 348 additions and 264 deletions

View File

@@ -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"])