Skip to content

Commit 013fac0

Browse files
committed
chore: prettier on all files
1 parent 45f7132 commit 013fac0

File tree

113 files changed

+350
-396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+350
-396
lines changed

packages/uui-action-bar/lib/uui-action-bar.story.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const AAAOverview: StoryFn = props => html`
4949
look="${props.look}"
5050
color="${props.color}">
5151
<uui-icon name="${el}"></uui-icon>
52-
</uui-button>`,
52+
</uui-button>`
5353
)}
5454
</uui-action-bar>
5555
</uui-icon-registry-essential>
@@ -71,7 +71,7 @@ export const Single = () => {
7171
<uui-icon name="delete"></uui-icon>
7272
</uui-button>
7373
</uui-action-bar>
74-
</div> `,
74+
</div> `
7575
)}
7676
</uui-icon-registry-essential>
7777
`;
@@ -97,12 +97,12 @@ export const LooksAndColors = () => {
9797
.look="${look as any}"
9898
.color="${color as any}">
9999
<uui-icon name="${el}"></uui-icon>
100-
</uui-button>`,
100+
</uui-button>`
101101
)}
102102
</uui-action-bar>
103-
`,
103+
`
104104
)}
105-
</div> `,
105+
</div> `
106106
)}
107107
</uui-icon-registry-essential>
108108
`;

packages/uui-avatar-group/lib/uui-avatar-group.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('UuiAvatarGroup Limit', async () => {
5555
<uui-avatar name="First Last"></uui-avatar>
5656
<uui-avatar name="First Last"></uui-avatar>
5757
<uui-avatar name="First Last"></uui-avatar>
58-
</uui-avatar-group>`,
58+
</uui-avatar-group>`
5959
);
6060
});
6161

@@ -76,7 +76,7 @@ describe('UuiAvatarGroup Limit', async () => {
7676
html` <uui-avatar-group>
7777
<uui-avatar name="First Last"></uui-avatar>
7878
<uui-avatar name="First Last"></uui-avatar>
79-
</uui-avatar-group>`,
79+
</uui-avatar-group>`
8080
);
8181

8282
const small = avatarGroup.shadowRoot!.querySelector('small');

packages/uui-avatar/lib/uui-avatar.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ describe('UuiAvatar', () => {
4343

4444
it('renders an image when imgSrc is set', async () => {
4545
const avatar = await fixture(
46-
html`<uui-avatar img-src="${avatarSrc}" name="My Avatar"></uui-avatar>`,
46+
html`<uui-avatar img-src="${avatarSrc}" name="My Avatar"></uui-avatar>`
4747
);
4848
expect(avatar).shadowDom.to.equal(
49-
`<img alt="MA" src="${avatarSrc}" srcset="" title="My Avatar" /><slot></<slot>`,
49+
`<img alt="MA" src="${avatarSrc}" srcset="" title="My Avatar" /><slot></<slot>`
5050
);
5151
});
5252

5353
it('renders an image with alt text when imgSrc and text is set', async () => {
5454
const avatar = await fixture(
55-
html`<uui-avatar img-src="${avatarSrc}" name="alt text"></uui-avatar>`,
55+
html`<uui-avatar img-src="${avatarSrc}" name="alt text"></uui-avatar>`
5656
);
5757
expect(avatar).shadowDom.to.equal(
58-
`<img alt="AT" src="${avatarSrc}" srcset="" title="alt text" /><slot></<slot>`,
58+
`<img alt="AT" src="${avatarSrc}" srcset="" title="alt text" /><slot></<slot>`
5959
);
6060
});
6161

@@ -66,7 +66,7 @@ describe('UuiAvatar', () => {
6666

6767
it('shows the first and last initial when text is used and there is no image', async () => {
6868
const avatar = await fixture(
69-
html`<uui-avatar name="First Second Last"></uui-avatar>`,
69+
html`<uui-avatar name="First Second Last"></uui-avatar>`
7070
);
7171
expect(avatar).shadowDom.to.equal('FL<slot></<slot>');
7272
});

packages/uui-badge/lib/uui-badge.story.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ export const LooksAndColors: Story = () => html`
174174
>${uppercaseFirstLetter(look)}</uui-badge
175175
>
176176
</div>
177-
`,
177+
`
178178
)}
179179
</div>
180-
`,
180+
`
181181
)}
182182
`;

packages/uui-base/lib/animations/uui-pulse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export const UUIHorizontalPulseKeyframes = css`
2323
`;
2424

2525
export const UUIHorizontalPulseAnimationValue = unsafeCSS(
26-
'pulse 0.8s ease-in-out infinite both',
26+
'pulse 0.8s ease-in-out infinite both'
2727
);

packages/uui-base/lib/animations/uui-shake.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export const UUIHorizontalShakeKeyframes = css`
2828
`;
2929

3030
export const UUIHorizontalShakeAnimationValue = unsafeCSS(
31-
'uui-horizontal-shake 600ms ease backwards',
31+
'uui-horizontal-shake 600ms ease backwards'
3232
);

packages/uui-base/lib/events/UUIEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
export class UUIEvent<
66
DetailType extends Record<string, any> = Record<string, any>,
7-
EventTargetType extends EventTarget | null = EventTarget | null,
7+
EventTargetType extends EventTarget | null = EventTarget | null
88
> extends Event {
99
readonly detail: DetailType;
1010
readonly target!: EventTargetType;

packages/uui-base/lib/mixins/ActiveMixin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export declare class ActiveMixinInterface {
1414
* @mixin
1515
*/
1616
export const ActiveMixin = <T extends Constructor<LitElement>>(
17-
superClass: T,
17+
superClass: T
1818
) => {
1919
class ActiveMixinClass extends superClass {
2020
/**

packages/uui-base/lib/mixins/FormControlMixin.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export declare abstract class FormControlMixinInterface extends LitElement {
2525
protected addValidator: (
2626
flagKey: FlagTypes,
2727
getMessageMethod: () => String,
28-
checkMethod: () => boolean,
28+
checkMethod: () => boolean
2929
) => void;
3030
protected addFormControlElement(element: NativeFormControlElement): void;
3131
pristine: boolean;
@@ -66,7 +66,7 @@ interface Validator {
6666
* @mixin
6767
*/
6868
export const FormControlMixin = <T extends Constructor<LitElement>>(
69-
superClass: T,
69+
superClass: T
7070
) => {
7171
abstract class FormControlMixinClass extends superClass {
7272
/**
@@ -163,12 +163,12 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
163163
this.addValidator(
164164
'valueMissing',
165165
() => this.requiredMessage,
166-
() => this.hasAttribute('required') && this.hasValue() === false,
166+
() => this.hasAttribute('required') && this.hasValue() === false
167167
);
168168
this.addValidator(
169169
'customError',
170170
() => this.errorMessage,
171-
() => this.error,
171+
() => this.error
172172
);
173173

174174
this.addEventListener('blur', () => {
@@ -222,7 +222,7 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
222222
protected addValidator(
223223
flagKey: FlagTypes,
224224
getMessageMethod: () => String,
225-
checkMethod: () => boolean,
225+
checkMethod: () => boolean
226226
): Validator {
227227
const obj = {
228228
flagKey: flagKey,
@@ -266,7 +266,7 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
266266
this._customValidityObject = this.addValidator(
267267
'customError',
268268
(): string => message,
269-
() => true,
269+
() => true
270270
);
271271
}
272272

@@ -284,7 +284,7 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
284284
this._internals.setValidity(
285285
(this as any)._validityState,
286286
formCtrlEl.validationMessage,
287-
formCtrlEl,
287+
formCtrlEl
288288
);
289289
}
290290
}
@@ -297,7 +297,7 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
297297
this._internals.setValidity(
298298
this._validityState,
299299
validator.getMessageMethod(),
300-
this.getFormElement(),
300+
this.getFormElement()
301301
);
302302
}
303303
});
@@ -309,7 +309,7 @@ export const FormControlMixin = <T extends Constructor<LitElement>>(
309309

310310
if (hasError) {
311311
this.dispatchEvent(
312-
new UUIFormControlEvent(UUIFormControlEvent.INVALID),
312+
new UUIFormControlEvent(UUIFormControlEvent.INVALID)
313313
);
314314
} else {
315315
this._internals.setValidity({});

packages/uui-base/lib/mixins/LabelMixin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export declare class LabelMixinInterface {
2323
*/
2424
export const LabelMixin = <T extends Constructor<LitElement>>(
2525
labelSlotName: string | null,
26-
superClass: T,
26+
superClass: T
2727
) => {
2828
/**
2929
* Label mixin class containing the label functionality.

0 commit comments

Comments
 (0)