Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions oxlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,39 @@ export default defineConfig({
"effect/avoid-node-imports": "error",
// Schedule and Effect timing already use duration strings. Keep that shape.
"effect/prefer-duration-constructors": "error",
// These already hold. Turn them on so new code cannot drift.
// Left off, because they do not fit this tree:
// solzero/no-if-statement and solzero/no-ternary rewrite handlers and charts.
// solzero/no-return-in-arrow rejects the Drizzle and React callbacks.
// solzero/prevent-dynamic-imports rejects the Vite plugin imports.
// solzero/no-manual-effect-channels rejects the runApi callback contract.
"effect/throw-in-effect-gen": "error",
"effect/avoid-any": "error",
"effect/avoid-ts-ignore": "error",
"effect/avoid-non-null-assertion": "error",
"effect/prefer-redacted-config": "error",
"effect/avoid-direct-tag-checks": "error",
"solzero/no-pipe-ladder": "error",
"solzero/no-flatmap-ladder": "error",
"solzero/no-effect-call-in-effect-arg": "error",
"solzero/no-nested-effect-call": "error",
"solzero/no-effect-as": "error",
"solzero/no-option-as": "error",
"solzero/no-arrow-ladder": "error",
"solzero/no-branch-in-object": "error",
"solzero/no-iife-wrapper": "error",
"solzero/no-effect-never": "error",
"solzero/no-effect-async": "error",
"solzero/no-effect-do": "error",
"solzero/no-effect-bind": "error",
"solzero/no-nested-effect-gen": "error",
"solzero/no-match-void-branch": "error",
"solzero/no-match-effect-branch": "error",
"solzero/warn-effect-sync-wrapper": "error",
"solzero/no-effect-side-effect-wrapper": "error",
"solzero/no-effect-orElse-ladder": "error",
"solzero/prefer-option-over-null": "error",
"solzero/avoid-untagged-errors": "error",
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/server/api/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const EndpointMonitorHandlers = HttpApiBuilder.group(Api, "endpointMonitors", (h
)
.handle("pause", ({ params }) =>
attempt("pauseMonitor", () => getWorkerEnv().env.MONITOR_TRIGGER_RPC.pauseDo(params.id)).pipe(
Effect.as(new MessageResponse({ message: "Paused monitor" })),
Effect.map(() => new MessageResponse({ message: "Paused monitor" })),
),
)
.handle("resume", ({ params }) =>
Expand Down
9 changes: 3 additions & 6 deletions scripts/e2e/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,9 @@ delete env.NODE_UNIQUE_ID

delete env.WATCH_REPORT_DEPENDENCIES

const sensitiveValues = Object.entries(process.env)
.filter(
([name, value]) =>
/TOKEN|SECRET|PASSWORD|KEY|PASSPHRASE/.test(name) && value && value.length > 5,
)
.map(([, value]) => value!)
const sensitiveValues = Object.entries(process.env).flatMap(([name, value]) =>
/TOKEN|SECRET|PASSWORD|KEY|PASSPHRASE/.test(name) && value && value.length > 5 ? [value] : [],
)

const redact = (chunk: Buffer) =>
sensitiveValues.reduce((text, value) => text.replaceAll(value, "[redacted]"), chunk.toString())
Expand Down
Loading