Skip to content

Commit 91f9928

Browse files
committed
style: reformat with prettier 3
1 parent b4fbf1d commit 91f9928

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

packages/sqip-cli/src/sqip-cli.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import Debug from 'debug'
66
import fs from 'fs-extra'
77
import pkgUp from 'pkg-up'
88

9-
import { sqip, resolvePlugins, SqipCliOptionDefinition, SqipOptions } from 'sqip'
9+
import {
10+
sqip,
11+
resolvePlugins,
12+
SqipCliOptionDefinition,
13+
SqipOptions
14+
} from 'sqip'
1015

1116
const debug = Debug('sqip-cli')
1217

@@ -65,8 +70,7 @@ const defaultOptionList: SqipCliOptionDefinition[] = [
6570
name: 'print',
6671
type: Boolean,
6772
defaultValue: false,
68-
description:
69-
'Print resulting svg to stdout.'
73+
description: 'Print resulting svg to stdout.'
7074
}
7175
]
7276

packages/sqip-plugin-blur/__tests__/unit/sqip-plugin-blur.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ describe('does prepare problematic svgs properly for blurring', () => {
5252
expect(result).toMatchSnapshot()
5353
})
5454
test('svg with missing background should not throw', () => {
55-
expect(() =>
56-
svgPlugin.prepareSVG(sampleNoBg, mockedMetadata)
57-
).not.toThrow()
55+
expect(() => svgPlugin.prepareSVG(sampleNoBg, mockedMetadata)).not.toThrow()
5856
})
5957
})
6058

packages/sqip-plugin-primitive/__tests__/unit/sqip-plugin-primitive.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jest.mock('os', () => ({
1818
const mockedExeca = execa as jest.MockedFunction<typeof execa>
1919
mockedExeca.mockImplementation(() => {
2020
const result = {
21-
stdout: '<svg viewBox=\"0 0 1024 768\"><rect fill="#bada5500"/><g></g></rect></svg>'
21+
stdout:
22+
'<svg viewBox="0 0 1024 768"><rect fill="#bada5500"/><g></g></rect></svg>'
2223
} as unknown as ExecaChildProcess<Buffer>
2324
return result
2425
})

0 commit comments

Comments
 (0)