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
6 changes: 3 additions & 3 deletions __tests__/lint-directives.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ async function strictObjectErrors(dir: string) {
);
const stdout = await promisify(execFile)(oxlint, ["--format=json", dir]).then(
(result) => result.stdout,
(error: unknown) =>
typeof error === "object" && error !== null && "stdout" in error
? String(error.stdout)
(err: unknown) =>
typeof err === "object" && err !== null && "stdout" in err
? String(err.stdout)
: "",
);
const report: unknown = JSON.parse(stdout);
Expand Down
4 changes: 3 additions & 1 deletion __tests__/petstore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ describe("Petstore", () => {
tags: ["tag1", "tag2"],
});

const result = await petStoreClient.json(command).catch((error) => error);
const result = await petStoreClient
.json(command)
.catch((err: unknown) => err);

expect(result).toBeTruthy();
});
Expand Down
4 changes: 2 additions & 2 deletions lib/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export async function build(
files.map(async (file) => {
try {
file.formatText();
} catch (error) {
console.warn(error);
} catch (err) {
console.warn(err);
}

// the blank line detaches the banner from the first import, which
Expand Down
6 changes: 3 additions & 3 deletions lib/oxlint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ export async function firedExemptions(files: string[]) {
{ cwd: root, maxBuffer: 1024 * 1024 * 1024 },
).then(
(result) => result.stdout,
(error: unknown) =>
typeof error === "object" && error !== null && "stdout" in error
? String(error.stdout)
(err: unknown) =>
typeof err === "object" && err !== null && "stdout" in err
? String(err.stdout)
: "",
);

Expand Down
6 changes: 2 additions & 4 deletions lib/valibot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ function regexSource(pattern: string) {
return JSON.stringify(pattern);
}

/**
* Helper to generate v.name(...args) using ts-morph Writers
*/
// an argument can be text or a writer, so a nested call writes in place
function vcall(
name: { [k in keyof typeof v]: k extends string ? k : never }[keyof typeof v],
...args: (
Expand Down Expand Up @@ -937,7 +935,7 @@ export function registerValidatorFromSchema(
}
}

/** Coerces HTTP param strings to native values, leaving other types alone */
// Coerces HTTP param strings to native values, leaving other types alone
function asHttpParamValidator(
validatorSchemas: Map<string, ValidatorEntry>,
schema: oas30.SchemaObject | oas31.SchemaObject | oas31.ReferenceObject,
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,34 @@
"preversion": "just check"
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^16.0.2",
"@apidevtools/json-schema-ref-parser": "^16.0.3",
"camelcase": "^9.0.0",
"toposort": "^2.0.2",
"ts-morph": "^28.0.0",
"word-wrap": "^1.2.5",
"yargs": "^18.1.0"
"yargs": "^18.2.0"
},
"devDependencies": {
"@block65/rest-client": "^15.0.0",
"@block65/shared-config": "^0.5.0",
"@block65/rest-client": "^15.0.1",
"@block65/shared-config": "^0.6.0",
"@block65/tsconfig": "^0.3.1",
"@hono/standard-validator": "^0.4.0",
"@types/node": "^26.6.2",
"@types/node": "^26.6.3",
"@types/toposort": "^2.0.7",
"@types/yargs": "^17.0.35",
"fallow": "^3.28.0",
"hono": "^4.13.8",
"fallow": "^3.29.0",
"hono": "^4.13.9",
"js-yaml": "^5.4.2",
"openapi3-ts": "^4.6.1",
"oxfmt": "^0.68.0",
"oxfmt": "^0.70.0",
"oxlint": "^1.83.0",
"oxlint-tsgolint": "^7.0.2002",
"oxlint-tsgolint": "^7.0.2003",
"type-fest": "^5.10.0",
"typescript": "^7.0.2",
"undici": "^8.10.2",
"undici": "^8.11.2",
"valibot": "^1.5.0",
"vite": "^8.3.0",
"vitest": "^5.0.1"
"vite": "^8.3.1",
"vitest": "^5.0.2"
},
"peerDependencies": {
"@block65/rest-client": "^15.0.0",
Expand Down
Loading
Loading