summaryrefslogtreecommitdiff
path: root/u/leftpadesque
diff options
context:
space:
mode:
authorElizabeth <lizhunt@amazon.com>2025-05-28 15:05:38 -0700
committerElizabeth <lizhunt@amazon.com>2025-05-28 15:05:38 -0700
commit3005cc83e605fb89b079cf0e6fd0ec95cd27b30e (patch)
tree992c5933f2ec4a75e32469ddd772c61dbcb2e2fd /u/leftpadesque
parente3cf820b07e282221502cf2f116c9780b7375e0e (diff)
downloadci-3005cc83e605fb89b079cf0e6fd0ec95cd27b30e.tar.gz
ci-3005cc83e605fb89b079cf0e6fd0ec95cd27b30e.zip
Run prettier, add zed settings
Diffstat (limited to 'u/leftpadesque')
-rw-r--r--u/leftpadesque/debug.ts6
-rw-r--r--u/leftpadesque/prepend.ts5
2 files changed, 7 insertions, 4 deletions
diff --git a/u/leftpadesque/debug.ts b/u/leftpadesque/debug.ts
index a9da1f3..e50b2e0 100644
--- a/u/leftpadesque/debug.ts
+++ b/u/leftpadesque/debug.ts
@@ -6,6 +6,8 @@ const _env: "development" | "production" =
: "development";
export const isProd = () => _env === "production";
-const _debug = !isProd() || (_hasEnv &&
- ["y", "t"].some((Deno.env.get("DEBUG") ?? "").toLowerCase().startsWith));
+const _debug =
+ !isProd() ||
+ (_hasEnv &&
+ ["y", "t"].some((Deno.env.get("DEBUG") ?? "").toLowerCase().startsWith));
export const isDebug = () => _debug;
diff --git a/u/leftpadesque/prepend.ts b/u/leftpadesque/prepend.ts
index 9b77aff..0f1ce30 100644
--- a/u/leftpadesque/prepend.ts
+++ b/u/leftpadesque/prepend.ts
@@ -1,4 +1,5 @@
export const prependWith = (arr: string[], prep: string) =>
- Array(arr.length * 2).fill(0)
+ Array(arr.length * 2)
+ .fill(0)
.map((_, i) => i % 2 === 0)
- .map((isPrep, i) => isPrep ? prep : arr[i]);
+ .map((isPrep, i) => (isPrep ? prep : arr[i]));