aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Cramer <cramertj@google.com>2024-02-14 00:21:26 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-02-14 00:21:26 +0000
commit7a40804002b6802464bd3d0edc62fde7655ab7f7 (patch)
tree16ee6380d685befaca70cc85cbe119af413b43f2
parenta10cefdae71c5204dc1bf6c798c195b8d5cfc0fa (diff)
downloadpigweed-7a40804002b6802464bd3d0edc62fde7655ab7f7.tar.gz
pw_presubmit: Fix formatting of typescript code
Fix: b/324625850 Change-Id: Id7b83b592ebc6a8207269a7fab429630c6d6758d Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/192393 Reviewed-by: Ted Pudlik <tpudlik@google.com> Commit-Queue: Taylor Cramer <cramertj@google.com> Pigweed-Auto-Submit: Taylor Cramer <cramertj@google.com>
-rwxr-xr-xpw_presubmit/py/pw_presubmit/format_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw_presubmit/py/pw_presubmit/format_code.py b/pw_presubmit/py/pw_presubmit/format_code.py
index e20c62647..26cccea12 100755
--- a/pw_presubmit/py/pw_presubmit/format_code.py
+++ b/pw_presubmit/py/pw_presubmit/format_code.py
@@ -186,7 +186,7 @@ def typescript_format_check(ctx: _Context) -> Dict[Path, str]:
def typescript_format_fix(ctx: _Context) -> Dict[Path, str]:
"""Fixes formatting for the provided files in place."""
- _typescript_format('--write', *ctx.paths)
+ _typescript_format(*ctx.paths, '--', '--write')
return {}