Skip to content

Commit d64f8dd

Browse files
committed
chore: fix biome
1 parent 4e051da commit d64f8dd

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"ignore": []
10+
"ignore": ["dist/**/*", "node_modules/**/*"]
1111
},
1212
"formatter": {
1313
"enabled": true,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"scripts": {
1717
"build": "tsc -p tsconfig.build.json",
1818
"build:watch": "tsc -p tsconfig.build.json -w",
19-
"format": "biome format ./src ./test --write",
20-
"check:lint": "biome lint ./src ./test",
21-
"check:format": "biome format ./src ./test",
19+
"format": "biome format ./**/*.ts --write",
20+
"check:lint": "biome lint ./**/*.ts",
21+
"check:format": "biome format ./**/*.ts",
2222
"test": "vitest run"
2323
},
2424
"devDependencies": {

src/decorator.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ type DiffableOpts = {
2929

3030
/**
3131
* Dynamically create a state object that persists changes to durable storage using Proxy and SQLite.
32-
*
32+
*
3333
* ```
3434
* import { DurableObject } from "cloudflare:workers";
3535
* import { diffable } from "diffable-objects";
36-
*
36+
*
3737
* class Counter extends DurableObject {
3838
* @diffable
3939
* #state = { count: 0 };
40-
*
40+
*
4141
* async fetch(request) {
4242
* this.#state.count += 1;
4343
* return new Response(`Count: ${this.#state.count}`);
@@ -51,15 +51,15 @@ export function diffable(
5151
): FieldDecoratorReturn<any>;
5252
/**
5353
* Dynamically create a state object that persists changes to durable storage using Proxy and SQLite.
54-
*
54+
*
5555
* ```
5656
* import { DurableObject } from "cloudflare:workers";
5757
* import { diffable } from "diffable-objects";
58-
*
58+
*
5959
* class Counter extends DurableObject {
6060
* @diffable("counter")
6161
* #state = { count: 0 };
62-
*
62+
*
6363
* async fetch(request) {
6464
* this.#state.count += 1;
6565
* return new Response(`Count: ${this.#state.count}`);
@@ -70,15 +70,15 @@ export function diffable(
7070
export function diffable(name?: string): FieldDecoratorFactoryReturn<any>;
7171
/**
7272
* Dynamically create a state object that persists changes to durable storage using Proxy and SQLite.
73-
*
73+
*
7474
* ```
7575
* import { DurableObject } from "cloudflare:workers";
7676
* import { diffable } from "diffable-objects";
77-
*
77+
*
7878
* class Counter extends DurableObject {
7979
* @diffable({ name: "counter", snapshotPolicy: "never" })
8080
* #state = { count: 0 };
81-
*
81+
*
8282
* async fetch(request) {
8383
* this.#state.count += 1;
8484
* return new Response(`Count: ${this.#state.count}`);

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ export type StateOptions = {
1616

1717
/**
1818
* Dynamically create a state object that persists changes to durable storage using Proxy and SQLite.
19-
*
19+
*
2020
* @example
2121
* ```
2222
* import { DurableObject } from "cloudflare:workers";
2323
* import { state } from "diffable-objects";
24-
*
24+
*
2525
* class Counter extends DurableObject {
2626
* #state = state(this, "counter", { count: 0 });
27-
*
27+
*
2828
* async fetch(request) {
2929
* this.#state.count += 1;
3030
* return new Response(`Count: ${this.#state.count}`);
3131
* }
3232
* }
3333
* ```
34-
*
34+
*
3535
* @param ctx the DurableObject state.
3636
* @param name the name of the state, typically the name of the field.
3737
* @param initialState the initial state of this object, this must be the same every time the DO is created.

0 commit comments

Comments
 (0)