Skip to content

Commit 0ebc659

Browse files
committed
🧼 format & lint
1 parent 1a24a45 commit 0ebc659

File tree

6 files changed

+36
-22
lines changed

6 files changed

+36
-22
lines changed

‎biome.json‎

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
2+
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space"
514
},
615
"linter": {
716
"enabled": true,
817
"rules": {
918
"recommended": true
1019
}
1120
},
12-
"formatter": {
13-
"indentStyle": "space"
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "double"
24+
}
1425
},
15-
"vcs": {
16-
"clientKind": "git",
26+
"assist": {
1727
"enabled": true,
18-
"useIgnoreFile": true
28+
"actions": {
29+
"source": {
30+
"organizeImports": "on"
31+
}
32+
}
1933
}
2034
}

‎bun.lockb‎

18.1 KB
Binary file not shown.

‎package.json‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@
2424
"dev": "bun run build && bunx prisma generate",
2525
"build": "bun run typecheck && bun build.ts",
2626
"lint": "biome check --write .",
27+
"format": "bun run lint",
2728
"typecheck": "tsc --noEmit"
2829
},
2930
"dependencies": {
30-
"@prisma/generator-helper": "^5.22.0",
31+
"@prisma/generator-helper": "^6.13.0",
3132
"@sinclair/typebox": "^0.34.3",
32-
"prettier": "^3.3.3"
33+
"prettier": "^3.6.2"
3334
},
3435
"devDependencies": {
35-
"@biomejs/biome": "^1.9.4",
36-
"@prisma/client": "5.22.0",
36+
"@biomejs/biome": "^2.1.3",
37+
"@prisma/client": "6.13.0",
3738
"@types/bun": "latest",
38-
"esbuild": "^0.24.0",
39-
"prisma": "5.22.0",
40-
"typescript": "^5.6.3"
39+
"esbuild": "^0.25.8",
40+
"prisma": "6.13.0",
41+
"typescript": "^5.9.2"
4142
}
4243
}

‎src/annotations/options.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ export function generateTypeboxOptions({
88
input?: ReturnType<typeof extractAnnotations>;
99
exludeAdditionalProperties?: boolean;
1010
} = {}): string {
11-
if(exludeAdditionalProperties === undefined) {
12-
exludeAdditionalProperties = !getConfig().additionalProperties
11+
if (exludeAdditionalProperties === undefined) {
12+
exludeAdditionalProperties = !getConfig().additionalProperties;
1313
}
1414

15-
1615
const stringifiedOptions: string[] = [];
1716
for (const annotation of input?.annotations ?? []) {
1817
if (isOptionsVariant(annotation)) {

‎src/generators/plain.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { getConfig } from "../config";
88
import type { ProcessedModel } from "../model";
99
import { processedEnums } from "./enum";
1010
import {
11-
type PrimitivePrismaFieldType,
1211
isPrimitivePrismaFieldType,
12+
type PrimitivePrismaFieldType,
1313
stringifyPrimitiveType,
1414
} from "./primitiveField";
1515
import { wrapWithArray } from "./wrappers/array";
@@ -31,7 +31,7 @@ export function processPlain(models: DMMF.Model[] | Readonly<DMMF.Model[]>) {
3131
export function stringifyPlain(
3232
data: DMMF.Model,
3333
isInputModelCreate = false,
34-
isInputModelUpdate = false
34+
isInputModelUpdate = false,
3535
) {
3636
const annotations = extractAnnotations(data.documentation);
3737

@@ -114,7 +114,7 @@ export function stringifyPlain(
114114
} else if (processedEnums.find((e) => e.name === field.type)) {
115115
// biome-ignore lint/style/noNonNullAssertion: we checked this manually
116116
stringifiedType = processedEnums.find(
117-
(e) => e.name === field.type
117+
(e) => e.name === field.type,
118118
)!.stringRepresentation;
119119
} else {
120120
return undefined;

‎src/generators/where.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { getConfig } from "../config";
88
import type { ProcessedModel } from "../model";
99
import { processedEnums } from "./enum";
1010
import {
11-
type PrimitivePrismaFieldType,
1211
isPrimitivePrismaFieldType,
12+
type PrimitivePrismaFieldType,
1313
stringifyPrimitiveType,
1414
} from "./primitiveField";
1515
import { wrapWithArray } from "./wrappers/array";

0 commit comments

Comments
 (0)