Skip to content

Commit 2215de3

Browse files
committed
chore: follow biome
1 parent 06d002c commit 2215de3

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

biome.jsonc

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828
// collides with the lint/nursery/useImportRestrictions rule
2929
"noBarrelFile": "off"
3030
},
31+
"correctness": {
32+
// this package runs on Node.js
33+
"noNodejsModules": "off"
34+
},
3135
"nursery": {
3236
"all": true,
33-
// this package runs on Node.js
34-
"noNodejsModules": "off",
3537
// handled by Knip
3638
"noUndeclaredDependencies": "off"
3739
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build": "tsc --project tsconfig.src.json",
2626
"commit": "git-cz",
2727
"check": "concurrently \"bun:check:*(!type:)\"",
28-
"check:biome": "biome check --apply --error-on-warnings .",
28+
"check:biome": "biome check --fix --error-on-warnings",
2929
"check:type": "concurrently \"bun:check:type:*\"",
3030
"check:type:base": "tsc --project tsconfig.base.json",
3131
"check:type:src": "tsc --noEmit --project tsconfig.src.json",

tests/e2e/conversion.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { readdir } from "node:fs/promises";
22
import { setTimeout } from "node:timers/promises";
33
import { expect, test } from "@playwright/test";
44
// biome-ignore lint/nursery/useImportRestrictions: import required for test
5-
import { AVAILABLE_FORMAT_CONVERSIONS } from "./fixtures/src/formats";
5+
import { AVAILABLE_FORMAT_CONVERSIONS } from "./fixtures/src/formats.ts";
66

77
// intended to run on CI, with the expected snapshots taken with the default image service
88

tests/e2e/fixtures/src/pages/[...path].astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { GetStaticPaths, ImageMetadata } from "astro";
55
import {
66
AVAILABLE_FORMAT_CONVERSIONS,
77
type VALID_INPUT_FORMATS,
8-
} from "../formats";
8+
} from "../formats.ts";
99
1010
import svgImage from "../images/astro.svg";
1111
import tiffImage from "../images/capybara.tiff";

tests/e2e/fixtures/src/pages/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
// biome-ignore lint/correctness/noUnusedImports: used in the template
3-
import { AVAILABLE_FORMAT_CONVERSIONS } from "../formats";
3+
import { AVAILABLE_FORMAT_CONVERSIONS } from "../formats.ts";
44
55
// biome-ignore lint/correctness/noUnusedVariables: used in the template
66
const imageService = process.env["USE_DEFAULT_IMAGE_SERVICE"]

tests/e2e/format.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
AVAILABLE_FORMAT_CONVERSIONS,
55
DEFAULT_OUTPUT_FORMAT,
66
// biome-ignore lint/nursery/useImportRestrictions: import required for test
7-
} from "./fixtures/src/formats";
7+
} from "./fixtures/src/formats.ts";
88

99
test.describe("Image Format Conversion", () => {
1010
for (const {

tests/e2e/vrt.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { setTimeout } from "node:timers/promises";
22
import { expect, test } from "@playwright/test";
33
// biome-ignore lint/nursery/useImportRestrictions: import required for test
4-
import { AVAILABLE_FORMAT_CONVERSIONS } from "./fixtures/src/formats";
4+
import { AVAILABLE_FORMAT_CONVERSIONS } from "./fixtures/src/formats.ts";
55

66
test.describe("Visual Regression", () => {
77
for (const {

0 commit comments

Comments
 (0)