Skip to content

Commit c0dd684

Browse files
authored
Migrate to Biome v2 (#287)
1 parent 59595cb commit c0dd684

File tree

21 files changed

+110
-111
lines changed

21 files changed

+110
-111
lines changed

biome.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
2+
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": { "organizeImports": "on" }
6+
}
57
},
68
"linter": {
79
"enabled": true,
@@ -17,7 +19,13 @@
1719
}
1820
},
1921
"files": {
20-
"ignore": ["fixtures", ".changeset", "package.json", "jsr.json"]
22+
"includes": [
23+
"**",
24+
"!**/fixtures",
25+
"!**/.changeset",
26+
"!**/package.json",
27+
"!**/jsr.json"
28+
]
2129
},
2230
"vcs": {
2331
"enabled": true,

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
21
// https://vitepress.dev/guide/custom-theme
32
import Theme from "vitepress/theme";
3+
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
44

55
import "./style.css";
66

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"update-fixtures": "uv run scripts/generate-v2.py && uv run scripts/generate-v3.py"
1212
},
1313
"devDependencies": {
14-
"@biomejs/biome": "1.9.4",
14+
"@biomejs/biome": "2.1.1",
1515
"@changesets/cli": "^2.28.1",
1616
"@petamoriken/float16": "^3.9.1",
1717
"@svitejs/changesets-changelog-github-compact": "^1.2.0",

packages/@zarrita-ndarray/__tests__/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as path from "node:path";
22
import * as url from "node:url";
3-
import { describe, expect, it } from "vitest";
4-
53
import { FileSystemStore } from "@zarrita/storage";
4+
import { describe, expect, it } from "vitest";
65
import * as zarr from "zarrita";
76

87
import { get } from "../src/index.js";

packages/@zarrita-ndarray/__tests__/setter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import ndarray, { type TypedArray } from "ndarray";
22
import { assign } from "ndarray-ops";
33
import { describe, expect, it } from "vitest";
44
import {
5-
type Projection,
65
_zarrita_internal_get_strides as get_strides,
6+
type Projection,
77
slice,
88
_zarrita_internal_slice_indices as slice_indices,
99
} from "zarrita";

packages/@zarrita-ndarray/__tests__/slice.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ndarray from "ndarray";
22
import { describe, expect, it } from "vitest";
3-
import { IndexError, create, slice } from "zarrita";
3+
import { create, IndexError, slice } from "zarrita";
44

55
import { get, set } from "../src/index.js";
66

packages/@zarrita-storage/__tests__/fs.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { afterAll, beforeAll, describe, expect, it } from "vitest";
2-
31
import * as fs from "node:fs/promises";
42
import * as path from "node:path";
53
import * as url from "node:url";
4+
import { afterAll, beforeAll, describe, expect, it } from "vitest";
65

76
import FileSystemStore from "../src/fs.js";
87

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { default as FetchStore } from "./fetch.js";
22
export { default as FileSystemStore } from "./fs.js";
33
export { default as ReferenceStore } from "./ref.js";
4-
export { default as ZipFileStore } from "./zip.js";
54
export type * from "./types.js";
5+
export { default as ZipFileStore } from "./zip.js";

packages/@zarrita-storage/src/zip.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { unzip } from "unzipit";
2-
import { assert, fetch_range, strip_prefix } from "./util.js";
3-
41
import type { Reader, ZipInfo } from "unzipit";
2+
import { unzip } from "unzipit";
53
import type { AbsolutePath, AsyncReadable } from "./types.js";
4+
import { assert, fetch_range, strip_prefix } from "./util.js";
65

76
export class BlobReader implements Reader {
87
constructor(public blob: Blob) {}

packages/zarrita/__tests__/consolidated.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as path from "node:path";
22
import * as url from "node:url";
3-
import { assert, describe, expect, it } from "vitest";
4-
53
import { FileSystemStore } from "@zarrita/storage";
4+
import { assert, describe, expect, it } from "vitest";
65
import { tryWithConsolidated, withConsolidated } from "../src/consolidated.js";
76
import { NodeNotFoundError } from "../src/errors.js";
87
import { Array as ZarrArray } from "../src/hierarchy.js";

0 commit comments

Comments
 (0)