lint: Use Prettier for JSON files.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-23 16:16:46 -07:00
committed by Tim Abbott
parent 40be4df57a
commit 2e029eb58b
4 changed files with 22 additions and 14 deletions

View File

@@ -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