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
|
@ -7,12 +7,12 @@
|
||||||
type RecipientUserIds<UserId: number> = $ReadOnlyArray<UserId>;
|
type RecipientUserIds<UserId: number> = $ReadOnlyArray<UserId>;
|
||||||
|
|
||||||
type Worker<UserId> = {|
|
type Worker<UserId> = {|
|
||||||
get_current_time: () => number, // as ms since epoch
|
get_current_time: () => number, // as ms since epoch
|
||||||
notify_server_start: RecipientUserIds<UserId> => void,
|
notify_server_start: (RecipientUserIds<UserId>) => void,
|
||||||
notify_server_stop: RecipientUserIds<UserId> => void
|
notify_server_stop: (RecipientUserIds<UserId>) => void,
|
||||||
|};
|
|};
|
||||||
|
|
||||||
declare export function update<UserId>(
|
declare export function update<UserId>(
|
||||||
worker: Worker<UserId>,
|
worker: Worker<UserId>,
|
||||||
new_recipient: RecipientUserIds<UserId> | null
|
new_recipient: RecipientUserIds<UserId> | null,
|
||||||
): void;
|
): void;
|
||||||
|
|
|
@ -43,7 +43,7 @@ def run() -> None:
|
||||||
by_lang = linter_config.list_files(
|
by_lang = linter_config.list_files(
|
||||||
groups={
|
groups={
|
||||||
"backend": ["py", "sh", "pp", "json", "md", "txt", "text", "yaml", "rst", "yml"],
|
"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,
|
exclude=EXCLUDED_FILES,
|
||||||
)
|
)
|
||||||
|
@ -142,7 +142,7 @@ def run() -> None:
|
||||||
linter_config.external_linter(
|
linter_config.external_linter(
|
||||||
"prettier",
|
"prettier",
|
||||||
["node_modules/.bin/prettier", "--check", "--loglevel=warn"],
|
["node_modules/.bin/prettier", "--check", "--loglevel=warn"],
|
||||||
["css", "js", "json", "ts", "yaml", "yml"],
|
["css", "flow", "js", "json", "ts", "yaml", "yml"],
|
||||||
fix_arg=["--write"],
|
fix_arg=["--write"],
|
||||||
description="Formats CSS, JavaScript, YAML",
|
description="Formats CSS, JavaScript, YAML",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue