Skip to content

Commit 7d9cd2a

Browse files
committed
formatting
1 parent 0db9699 commit 7d9cd2a

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/UtilityParser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,4 +454,3 @@ export default class UtilityParser {
454454
this.order = (this.order ?? 0) + 1;
455455
}
456456
}
457-

src/__tests__/transform.spec.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ describe(`transform utilities`, () => {
123123
});
124124

125125
test(`combine repeated rotate utilities into one`, () => {
126-
expect(tw.style(`rotate-50 rotate-100`)).toMatchObject({ transform: [{ rotate: `100deg` }] });
126+
expect(tw.style(`rotate-50 rotate-100`)).toMatchObject({
127+
transform: [{ rotate: `100deg` }],
128+
});
127129
expect(tw.style(`rotate-x-50 rotate-x-100`)).toMatchObject({
128130
transform: [{ rotateX: `100deg` }],
129131
});
@@ -247,7 +249,11 @@ describe(`transform utilities`, () => {
247249
});
248250

249251
test(`combine multiple transform utilities `, () => {
250-
expect(tw.style(`scale-50 scale-x-100 scale-y-150 rotate-0 rotate-x-90 rotate-y-45 skew-x-99 skew-y-99 translate-x-px translate-y-px`)).toMatchObject({
252+
expect(
253+
tw.style(
254+
`scale-50 scale-x-100 scale-y-150 rotate-0 rotate-x-90 rotate-y-45 skew-x-99 skew-y-99 translate-x-px translate-y-px`,
255+
),
256+
).toMatchObject({
251257
transform: [
252258
{ scale: 0.5 },
253259
{ scaleX: 1 },
@@ -264,6 +270,10 @@ describe(`transform utilities`, () => {
264270
});
265271

266272
test(`transform-none`, () => {
267-
expect(tw.style(`scale-50 scale-x-100 scale-y-150 rotate-0 rotate-x-90 rotate-y-45 skew-x-99 skew-y-99 translate-x-px translate-y-px transform-none`)).toMatchObject({ transform: [] });
273+
expect(
274+
tw.style(
275+
`scale-50 scale-x-100 scale-y-150 rotate-0 rotate-x-90 rotate-y-45 skew-x-99 skew-y-99 translate-x-px translate-y-px transform-none`,
276+
),
277+
).toMatchObject({ transform: [] });
268278
});
269279
});

src/resolve/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function skew(
9494
styleVal = parseUnconfigged(value, context);
9595
} else {
9696
// unconfigged value should should be converted to degrees
97-
// e.g `skew-99` should be `99deg`
97+
// e.g `skew-x-99` should be `99deg`
9898
const parsed = parseNumericValue(value);
9999
styleVal = parsed ? toStyleVal(parsed[0], Unit.deg, context) : null;
100100
}

0 commit comments

Comments
 (0)