mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
shared: Format our one Flow file with Prettier.
Why not. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Steve Howell
parent
150a07cdcd
commit
57f2b8760a
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user