From 91f9928c0a06cd3d7fc6a0284bb965a9098f8bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Tue, 6 Feb 2024 13:21:19 +0100 Subject: [PATCH] style: reformat with prettier 3 --- packages/sqip-cli/src/sqip-cli.ts | 10 +++++++--- .../__tests__/unit/sqip-plugin-blur.test.ts | 4 +--- .../__tests__/unit/sqip-plugin-primitive.test.ts | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/sqip-cli/src/sqip-cli.ts b/packages/sqip-cli/src/sqip-cli.ts index 26810a12..47a3fff8 100644 --- a/packages/sqip-cli/src/sqip-cli.ts +++ b/packages/sqip-cli/src/sqip-cli.ts @@ -6,7 +6,12 @@ import Debug from 'debug' import fs from 'fs-extra' import pkgUp from 'pkg-up' -import { sqip, resolvePlugins, SqipCliOptionDefinition, SqipOptions } from 'sqip' +import { + sqip, + resolvePlugins, + SqipCliOptionDefinition, + SqipOptions +} from 'sqip' const debug = Debug('sqip-cli') @@ -65,8 +70,7 @@ const defaultOptionList: SqipCliOptionDefinition[] = [ name: 'print', type: Boolean, defaultValue: false, - description: - 'Print resulting svg to stdout.' + description: 'Print resulting svg to stdout.' } ] diff --git a/packages/sqip-plugin-blur/__tests__/unit/sqip-plugin-blur.test.ts b/packages/sqip-plugin-blur/__tests__/unit/sqip-plugin-blur.test.ts index 0475c4ea..c6d595bc 100644 --- a/packages/sqip-plugin-blur/__tests__/unit/sqip-plugin-blur.test.ts +++ b/packages/sqip-plugin-blur/__tests__/unit/sqip-plugin-blur.test.ts @@ -52,9 +52,7 @@ describe('does prepare problematic svgs properly for blurring', () => { expect(result).toMatchSnapshot() }) test('svg with missing background should not throw', () => { - expect(() => - svgPlugin.prepareSVG(sampleNoBg, mockedMetadata) - ).not.toThrow() + expect(() => svgPlugin.prepareSVG(sampleNoBg, mockedMetadata)).not.toThrow() }) }) diff --git a/packages/sqip-plugin-primitive/__tests__/unit/sqip-plugin-primitive.test.ts b/packages/sqip-plugin-primitive/__tests__/unit/sqip-plugin-primitive.test.ts index 781ced42..d31517ab 100644 --- a/packages/sqip-plugin-primitive/__tests__/unit/sqip-plugin-primitive.test.ts +++ b/packages/sqip-plugin-primitive/__tests__/unit/sqip-plugin-primitive.test.ts @@ -18,7 +18,8 @@ jest.mock('os', () => ({ const mockedExeca = execa as jest.MockedFunction mockedExeca.mockImplementation(() => { const result = { - stdout: '' + stdout: + '' } as unknown as ExecaChildProcess return result })