Skip to content

Commit a33c7af

Browse files
committed
fix: biome check
1 parent c033380 commit a33c7af

51 files changed

Lines changed: 85 additions & 85 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"files": {
3131
"ignoreUnknown": true,
32-
"includes": ["**", "!**/dist", "!**/coverage", "!examples"],
32+
"includes": ["**", "!**/dist", "!coverage", "!examples", "!test/code"],
3333
"maxSize": 10485760
3434
},
3535
"javascript": {

scripts/validate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as fs from "fs";
1+
import * as fs from "node:fs";
2+
import * as path from "node:path";
23
import * as yaml from "js-yaml";
34
import OpenAPISchemaValidator from "openapi-schema-validator";
4-
import * as path from "path";
55

66
const filename = path.join(__dirname, "../test/api.test.domain/index.yml");
77
const data = fs.readFileSync(filename, { encoding: "utf-8" });

scripts/watch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const main = async () => {
1515
try {
1616
console.log((await shell("pnpm build")).stdout);
1717
console.log((await shell("pnpm run test:code:gen")).stdout);
18-
} catch (error) {
18+
} catch (_error) {
1919
console.error("Failed");
2020
}
2121
});
@@ -24,7 +24,7 @@ const main = async () => {
2424
console.log(`Watch Change file ... ${path}`);
2525
try {
2626
console.log((await shell("pnpm run test:code:gen")).stdout);
27-
} catch (error) {
27+
} catch (_error) {
2828
console.error("Failed");
2929
}
3030
});

scripts/writer/Class.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as fs from "fs";
2-
import { posix as path } from "path";
1+
import * as fs from "node:fs";
2+
import { posix as path } from "node:path";
33

44
import { CodeGenerator, type Option as CodeGeneratorOption } from "../../dist";
55
import * as Templates from "../../dist/templates";

scripts/writer/CurryingFunctional.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as fs from "fs";
2-
import { posix as path } from "path";
1+
import * as fs from "node:fs";
2+
import { posix as path } from "node:path";
33

44
import { CodeGenerator, type Option as CodeGeneratorOption } from "../../dist";
55
import * as Templates from "../../dist/templates";

scripts/writer/Functional.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as fs from "fs";
2-
import { posix as path } from "path";
1+
import * as fs from "node:fs";
2+
import { posix as path } from "node:path";
33

44
import { CodeGenerator, type Option as CodeGeneratorOption } from "../../dist";
55
import * as Templates from "../../dist/templates";

src/code-templates/_shared/MethodBody/__tests__/PathParameter-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ts from "typescript";
2-
import { describe, expect, it, test } from "vitest";
2+
import { describe, expect, test } from "vitest";
33

44
import { TsGenerator } from "../../../../api";
55
import type { CodeGenerator } from "../../../../types";

src/code-templates/_shared/__tests__/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it, test } from "vitest";
1+
import { describe, expect, test } from "vitest";
22
import * as Utils from "../utils";
33

44
type OK = Utils.VariableElement;

src/code-templates/_shared/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type Params$TemplateExpression = Item[];
1919

2020
const getTemplateSpan = (
2121
factory: TsGenerator.Factory.Type,
22-
currentIndex: number,
22+
_currentIndex: number,
2323
nextIndex: number,
2424
lastIndex: number,
2525
currentItem: ExpressionItem,

src/code-templates/class-api-client/ApiClientClass/Method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EOL } from "os";
1+
import { EOL } from "node:os";
22

33
import type ts from "typescript";
44

0 commit comments

Comments
 (0)