Skip to content

Commit 4525e2d

Browse files
authored
chore: update deps, update Biome (#2442)
1 parent 647aa37 commit 4525e2d

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

biome.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
3-
"extends": ["../../biome.json"],
2+
"root": false,
3+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
4+
"extends": "//",
45
"files": {
5-
"include": ["./src/"]
6+
"includes": ["src/**"]
67
},
78
"linter": {
89
"rules": {

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@
7373
},
7474
"dependencies": {
7575
"openapi-typescript-helpers": "workspace:^",
76-
"type-fest": "^4.40.1"
76+
"type-fest": "^4.41.0"
7777
},
7878
"devDependencies": {
79-
"@types/lodash": "^4.17.16",
80-
"@types/react": "^18.3.20",
79+
"@types/lodash": "^4.17.20",
80+
"@types/react": "^18.3.24",
8181
"husky": "^9.1.7",
8282
"lint-staged": "15.5.2",
8383
"lodash": "^4.17.21",
8484
"openapi-fetch": "workspace:^",
8585
"openapi-typescript": "workspace:^",
8686
"react": "^18.3.1",
87-
"swr": "^2.3.3",
87+
"swr": "^2.3.6",
8888
"typescript": "^5.9.2"
8989
}
9090
}

src/__test__/mutate.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const useMutate = createMutateHook(
3434
// @ts-expect-error - not going to compare for most tests
3535
null,
3636
);
37+
// biome-ignore lint/correctness/useHookAtTopLevel: this is a test
3738
const mutate = useMutate();
3839

3940
describe("createMutateHook", () => {

src/__test__/query.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import useSWR from "swr";
12
import { describe, expect, it, vi } from "vitest";
23
import * as QueryBase from "../query-base.js";
3-
import useSWR from "swr";
44

55
vi.mock("../query-base.js");
66
const { configureBaseQueryHook } = vi.mocked(QueryBase);

src/__test__/types.test-d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const useMutate = createMutateHook(
3636
// @ts-expect-error - compare function not needed for these type tests
3737
null,
3838
);
39+
// biome-ignore lint/correctness/useHookAtTopLevel: this is a test
3940
const mutate = useMutate();
4041

4142
describe("types", () => {

src/infinite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { Client } from "openapi-fetch";
22
import type { MediaType, PathsWithMethod } from "openapi-typescript-helpers";
3+
import { useCallback, useDebugValue } from "react";
34
import useSWRInfinite, {
45
type SWRInfiniteConfiguration,
56
type SWRInfiniteFetcher,
67
type SWRInfiniteKeyLoader,
78
} from "swr/infinite";
8-
import type { TypesForGetRequest } from "./types.js";
9-
import { useCallback, useDebugValue } from "react";
109
import type { Exact } from "type-fest";
10+
import type { TypesForGetRequest } from "./types.js";
1111

1212
/**
1313
* Produces a typed wrapper for [`useSWRInfinite`](https://swr.vercel.app/docs/pagination#useswrinfinite).

src/query-base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Client } from "openapi-fetch";
22
import type { MediaType, PathsWithMethod, RequiredKeysOf } from "openapi-typescript-helpers";
3-
import type { Fetcher, SWRHook } from "swr";
4-
import type { TypesForGetRequest } from "./types.js";
53
import { useCallback, useDebugValue, useMemo } from "react";
4+
import type { Fetcher, SWRHook } from "swr";
65
import type { Exact } from "type-fest";
6+
import type { TypesForGetRequest } from "./types.js";
77

88
/**
99
* @private

0 commit comments

Comments
 (0)