Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
shared: Format our one Flow file with Prettier.
Anders Kaseorg57f2b8760a38
diff --git a/static/shared/js/typing_status.js.flow b/static/shared/js/typing_status.js.flowindex 01a259a876b..82d1a11f7bf 100644--- a/static/shared/js/typing_status.js.flow+++ b/static/shared/js/typing_status.js.flow@@ -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;diff --git a/tools/lint b/tools/lintindex 7c639df4150..6f982c05f96 100755--- a/tools/lint+++ b/tools/lint@@ -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",)