mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
lint: Use Prettier for JSON files.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
40be4df57a
commit
2e029eb58b
@@ -94,7 +94,7 @@ def run() -> None:
|
||||
description="Sorts Python import statements",
|
||||
check_arg=['--check-only', '--diff'])
|
||||
linter_config.external_linter('prettier', ['node_modules/.bin/prettier', '--check'],
|
||||
['js', 'ts', 'yaml', 'yml'],
|
||||
['js', 'json', 'ts', 'yaml', 'yml'],
|
||||
fix_arg=['--write'],
|
||||
description="Formats JavaScript and YAML",
|
||||
# https://github.com/prettier/prettier/pull/8703
|
||||
|
||||
Reference in New Issue
Block a user