Skip to content

Commit

Permalink
chore: remove eslint-disable (#6066)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Nov 24, 2023
1 parent 089746e commit 56ac274
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/combine-playwright-failed-screenshots.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
// @ts-nocheck It is used in CI only!
/**
* Canvas has difficult installation guide for ARM CPU, including an Apple M1 or M2
Expand Down Expand Up @@ -34,7 +33,7 @@ console.info(`canvas:`, version);
}

const images = await Promise.all(imagesPaths.map(loadImage));
const totalWidth = images.reduce((acc, {width}) => acc + width, 0);
const totalWidth = images.reduce((acc: number, {width}) => acc + width, 0);
const maxHeight = Math.max(...images.map(({height}) => height));
const canvas = createCanvas(totalWidth, maxHeight);
const ctx = canvas.getContext(`2d`);
Expand Down

0 comments on commit 56ac274

Please sign in to comment.