Skip to content

Commit e92975d

Browse files
dev: Bump biome and remove jobs (#1799)
1 parent 653d78e commit e92975d

File tree

36 files changed

+543
-933
lines changed

36 files changed

+543
-933
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,6 @@ on:
1010
- checks_requested
1111

1212
jobs:
13-
check-circular-deps:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
18-
- name: Install pnpm
19-
uses: pnpm/action-setup@v4
20-
with:
21-
run_install: false
22-
23-
- name: Use Node.js
24-
uses: actions/setup-node@v4
25-
with:
26-
node-version: 22.x
27-
cache: 'pnpm'
28-
29-
- name: Install dpdm
30-
run: pnpm install -g dpdm
31-
32-
- name: Check circular dependencies
33-
run: dpdm --exit-code circular:1 packages/**/index.ts -T
34-
35-
lint-and-format:
36-
runs-on: ubuntu-latest
37-
steps:
38-
- uses: actions/checkout@v4
39-
- uses: biomejs/setup-biome@v2
40-
- uses: denoland/setup-deno@v2
41-
with:
42-
deno-version: v2.x # Run with latest stable Deno.
43-
- name: Lint
44-
run: biome ci --formatter-enabled=false --organize-imports-enabled=false .
45-
- name: Check formatting
46-
run: deno fmt --check
47-
4813
build-and-test:
4914
runs-on: ubuntu-latest
5015
steps:

apps/typegpu-docs/src/components/CodeEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Editor, {
33
type Monaco,
44
type OnMount,
55
} from '@monaco-editor/react';
6-
// biome-ignore lint/correctness/noUnusedImports: <its a namespace, Biome>
76
import type { editor } from 'monaco-editor';
87
import { entries, filter, fromEntries, isTruthy, map, pipe } from 'remeda';
98
import { SANDBOX_MODULES } from '../utils/examples/sandboxModules.ts';

apps/typegpu-docs/src/components/ExampleView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ function useResizableCanvas(exampleHtmlRef: RefObject<HTMLDivElement | null>) {
245245
}
246246

247247
for (const prop of canvas.style) {
248-
// @ts-ignore
248+
// @ts-expect-error
249249
newCanvas.style[prop] = canvas.style[prop];
250250
}
251251
for (const attribute of canvas.attributes) {
252-
// @ts-ignore
252+
// @ts-expect-error
253253
newCanvas[attribute.name] = attribute.value;
254254
}
255255
newCanvas.className = 'absolute w-full h-full';

apps/typegpu-docs/src/components/design/DeleteIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const DeleteIcon = () => {
1818
const controls = useAnimation();
1919

2020
return (
21+
// biome-ignore lint/a11y/noStaticElementInteractions: This is just an animation
2122
<div
2223
className='flex cursor-pointer select-none items-center justify-center rounded-md p-2 transition-colors duration-200 hover:bg-accent'
2324
onMouseEnter={() => controls.start('animate')}

apps/typegpu-docs/src/components/stackblitz/openInStackBlitz.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ import typegpuPackageJson from 'typegpu/package.json' with { type: 'json' };
1414
import unpluginPackageJson from 'unplugin-typegpu/package.json' with {
1515
type: 'json',
1616
};
17+
// biome-ignore lint/correctness/useImportExtensions: dude it's there
1718
import pnpmWorkspace from '../../../../../pnpm-workspace.yaml?raw';
1819
import typegpuDocsPackageJson from '../../../package.json' with {
1920
type: 'json',
2021
};
2122
import type { Example } from '../../utils/examples/types.ts';
23+
// biome-ignore lint/correctness/useImportExtensions: dude it's there
2224
import index from './stackBlitzIndex.ts?raw';
2325

2426
const pnpmWorkspaceYaml = type({

apps/typegpu-docs/src/components/stackblitz/stackBlitzIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (body.firstChild) {
6666
}
6767

6868
// Execute example
69-
// @ts-ignore
69+
// @ts-expect-error
7070
const example = await import('./src/index.ts');
7171

7272
// Create example controls

apps/typegpu-docs/src/examples/algorithms/probability/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ const replot = async (
1717
currentDistribution: Distribution,
1818
animate = false,
1919
) => {
20-
let samples = undefined;
2120
const prng = getPRNG(currentDistribution);
2221

23-
samples = await executor.executeMoreWorkers(prng.prng);
22+
const samples = await executor.executeMoreWorkers(prng.prng);
2423
await plotter.plot(samples, prng, animate);
2524
};
2625

apps/typegpu-docs/src/examples/image-processing/ascii-filter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ let bindGroup:
199199
| undefined;
200200

201201
let videoFrameCallbackId: number | undefined;
202-
let lastFrameSize: { width: number; height: number } | undefined = undefined;
202+
let lastFrameSize: { width: number; height: number } | undefined;
203203

204204
function processVideoFrame(
205205
_: number,

apps/typegpu-docs/src/examples/image-processing/camera-thresholding/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const renderPassDescriptor: GPURenderPassDescriptor = {
170170
};
171171

172172
let videoFrameCallbackId: number | undefined;
173-
let lastFrameSize: { width: number; height: number } | undefined = undefined;
173+
let lastFrameSize: { width: number; height: number } | undefined;
174174

175175
function processVideoFrame(
176176
_: number,

apps/typegpu-docs/src/examples/image-processing/chroma-keying/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const renderPassDescriptor: GPURenderPassDescriptor = {
184184
};
185185

186186
let videoFrameCallbackId: number | undefined;
187-
let lastFrameSize: { width: number; height: number } | undefined = undefined;
187+
let lastFrameSize: { width: number; height: number } | undefined;
188188

189189
function processVideoFrame(
190190
_: number,

0 commit comments

Comments
 (0)