summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-05-17 02:57:20 +0200
committerRory& <root@rory.gay>2026-05-24 06:07:35 +0200
commit04bc09c896d4b26916bb4ef3effe8d207e1a7f2d (patch)
tree7e675e5c62b071e39e3d2e97a0ce42e4b8c1e0e5
parentClean up unused binding in cdn-cs nix module (diff)
downloadserver-ts-04bc09c896d4b26916bb4ef3effe8d207e1a7f2d.tar.xz
Side tangent: fix prettier complaints
-rw-r--r--.lintstagedrc.mjs7
-rw-r--r--eslint.config.mjs2
-rw-r--r--src/cdn/util/Storage.ts4
3 files changed, 10 insertions, 3 deletions
diff --git a/.lintstagedrc.mjs b/.lintstagedrc.mjs

index aa1b9bea..7fc5b11e 100644 --- a/.lintstagedrc.mjs +++ b/.lintstagedrc.mjs
@@ -1,4 +1,9 @@ export default { "*.{j,t}s": [() => "npm run build:src:tsgo", "eslint --concurrency 4" /* sweet spot it seems */, "prettier --write"], - "src/schemas/{*,**/*}.ts": [() => "npm run build:src:tsgo", () => "node scripts/schema.js", () => "node scripts/openapi.js", () => "git add assets/schemas.json assets/openapi.json"], + "src/schemas/{*,**/*}.ts": [ + () => "npm run build:src:tsgo", + () => "node scripts/schema.js", + () => "node scripts/openapi.js", + () => "git add assets/schemas.json assets/openapi.json", + ], }; diff --git a/eslint.config.mjs b/eslint.config.mjs
index 83ff1e78..cd8f785e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs
@@ -66,7 +66,7 @@ export default defineConfig([ // "sort-imports": ["error", {}], "default-case": "error", "default-case-last": "error", - "yoda": "error", + yoda: "error", // unsure what the defaults are here, but we want them to error "for-direction": "error", "constructor-super": "error", diff --git a/src/cdn/util/Storage.ts b/src/cdn/util/Storage.ts
index 7579e2d6..3245f655 100644 --- a/src/cdn/util/Storage.ts +++ b/src/cdn/util/Storage.ts
@@ -86,7 +86,9 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) { const forcePathStyle = process.env.STORAGE_FORCE_PATH_STYLE === "true"; if (process.env.STORAGE_FORCE_PATH_STYLE === undefined) { - console.warn(`[CDN] STORAGE_FORCE_PATH_STYLE is not set for S3 provider; defaulting to virtual-hosted style. Set STORAGE_FORCE_PATH_STYLE=true to enable path-style addressing.`); + console.warn( + `[CDN] STORAGE_FORCE_PATH_STYLE is not set for S3 provider; defaulting to virtual-hosted style. Set STORAGE_FORCE_PATH_STYLE=true to enable path-style addressing.`, + ); } const { S3Storage } = require("./S3Storage");