mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-26 03:15:06 +00:00
Side tangent: fix prettier complaints
This commit is contained in:
+6
-1
@@ -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",
|
||||
],
|
||||
};
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user