mirror of https://github.com/zulip/zulip.git
shared: Format our one Flow file with Prettier.
Why not. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
150a07cdcd
commit
57f2b8760a
|
@ -8,11 +8,11 @@ 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
|
||||
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
|
||||
new_recipient: RecipientUserIds<UserId> | null,
|
||||
): void;
|
||||
|
|
|
@ -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",
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue