shared: Format our one Flow file with Prettier.

Why not.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-02-13 20:01:20 -08:00 committed by Steve Howell
parent 150a07cdcd
commit 57f2b8760a
2 changed files with 7 additions and 7 deletions

View File

@ -7,12 +7,12 @@
type RecipientUserIds<UserId: number> = $ReadOnlyArray<UserId>;
type Worker<UserId> = {|
get_current_time: () => number, // as ms since epoch
notify_server_start: RecipientUserIds<UserId> => void,
notify_server_stop: RecipientUserIds<UserId> => void
get_current_time: () => number, // as ms since epoch
notify_server_start: (RecipientUserIds<UserId>) => void,
notify_server_stop: (RecipientUserIds<UserId>) => void,
|};
declare export function update<UserId>(
worker: Worker<UserId>,
new_recipient: RecipientUserIds<UserId> | null
worker: Worker<UserId>,
new_recipient: RecipientUserIds<UserId> | null,
): void;

View File

@ -43,7 +43,7 @@ def run() -> None:
by_lang = linter_config.list_files(
groups={
"backend": ["py", "sh", "pp", "json", "md", "txt", "text", "yaml", "rst", "yml"],
"frontend": ["js", "ts", "css", "hbs", "html", "lock"],
"frontend": ["js", "ts", "flow", "css", "hbs", "html", "lock"],
},
exclude=EXCLUDED_FILES,
)
@ -142,7 +142,7 @@ def run() -> None:
linter_config.external_linter(
"prettier",
["node_modules/.bin/prettier", "--check", "--loglevel=warn"],
["css", "js", "json", "ts", "yaml", "yml"],
["css", "flow", "js", "json", "ts", "yaml", "yml"],
fix_arg=["--write"],
description="Formats CSS, JavaScript, YAML",
)