Skip to content

Commit 99b9c87

Browse files
committed
build(deps-dev): bump eslint dependencies and run formatter
1 parent c702b18 commit 99b9c87

File tree

131 files changed

+565
-755
lines changed

Some content is hidden

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

131 files changed

+565
-755
lines changed

package-lock.json

+76-323
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
"@storybook/web-components": "^7.6.12",
7676
"@storybook/web-components-vite": "^7.6.12",
7777
"@types/chai": "4.3.5",
78-
"@typescript-eslint/eslint-plugin": "6.6.0",
79-
"@typescript-eslint/parser": "6.0.0",
78+
"@typescript-eslint/eslint-plugin": "6.21.0",
79+
"@typescript-eslint/parser": "6.21.0",
8080
"@web/dev-server-esbuild": "0.4.3",
8181
"@web/test-runner": "0.17.0",
8282
"@web/test-runner-playwright": "0.11.0",

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

+5-5
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

+2-2
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

+5-5
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+9-9
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

+1-1
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.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export declare class PopoverTargetMixinInterface {
2626
* @mixin
2727
*/
2828
export const PopoverTargetMixin = <T extends Constructor<LitElement>>(
29-
superClass: T
29+
superClass: T,
3030
) => {
3131
/**
3232
* Popover target mixin class containing the popover target functionality.
@@ -54,7 +54,7 @@ export const PopoverTargetMixin = <T extends Constructor<LitElement>>(
5454
const popoverContainerElement = findAncestorByAttributeValue(
5555
this,
5656
'id',
57-
this.popoverContainerElement
57+
this.popoverContainerElement,
5858
);
5959
if (!popoverContainerElement) return;
6060

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export declare class SelectOnlyMixinInterface extends SelectableMixinInterface {
1515
* @mixin
1616
*/
1717
export const SelectOnlyMixin = <
18-
T extends Constructor<SelectableMixinInterface>
18+
T extends Constructor<SelectableMixinInterface>,
1919
>(
20-
superClass: T
20+
superClass: T,
2121
) => {
2222
class SelectOnlyMixinClass extends superClass {
2323
private _selectOnly = false;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export declare class SelectableMixinInterface extends LitElement {
2020
* @mixin
2121
*/
2222
export const SelectableMixin = <T extends Constructor<LitElement>>(
23-
superClass: T
23+
superClass: T,
2424
) => {
2525
/**
2626
* @fires {UUISelectableEvent} selected - fires when the media card is selected

packages/uui-base/lib/registration/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
*/
88
export function defineElement(
99
name: string,
10-
options?: ElementDefinitionOptions | undefined
10+
options?: ElementDefinitionOptions | undefined,
1111
) {
1212
return (constructor: CustomElementConstructor) => {
1313
const isValidElementName = name.indexOf('-') > 0;
1414

1515
if (isValidElementName === false) {
1616
console.error(
17-
`${name} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`
17+
`${name} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`,
1818
);
1919
return;
2020
}

packages/uui-base/lib/utils/Timer.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ export class Timer {
44
private _duration!: number;
55
private _remaining: number | null = null;
66

7-
constructor(private _callback: Function, duration: number) {
7+
constructor(
8+
private _callback: Function,
9+
duration: number,
10+
) {
811
this.setDuration(duration);
912
}
1013

packages/uui-base/lib/utils/demandCustomElement.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
export const demandCustomElement = (
99
requester: HTMLElement,
1010
elementName: string,
11-
message: string = `This element has to be present for ${requester.nodeName} to work appropriate.`
11+
message: string = `This element has to be present for ${requester.nodeName} to work appropriate.`,
1212
) => {
1313
if (!customElements.get(elementName)) {
1414
console.warn(
1515
`%c ${requester.nodeName} requires ${elementName} element to be registered!`,
1616
'font-weight: bold;',
1717
message,
18-
requester
18+
requester,
1919
);
2020
}
2121
};

packages/uui-base/lib/utils/drag.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface DragOptions {
1313

1414
export const drag = (
1515
container: HTMLElement,
16-
options?: Partial<DragOptions>
16+
options?: Partial<DragOptions>,
1717
) => {
1818
function move(event: PointerEvent | TouchEvent) {
1919
const dims = container.getBoundingClientRect();

packages/uui-base/lib/utils/findAncestorByAttributeValue.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export const findAncestorByAttributeValue = (
99
startNode: HTMLElement | ParentNode,
1010
attributeName: string,
11-
attributeValue: string
11+
attributeValue: string,
1212
): HTMLElement | null => {
1313
let currentNode: typeof startNode | null = startNode;
1414

@@ -28,7 +28,7 @@ export const findAncestorByAttributeValue = (
2828
return currentNode as HTMLElement; // Found a matching ancestor
2929
} else if (elementContainsAttribute) {
3030
return currentNode.querySelector(
31-
`[${attributeName}="${attributeValue}"]`
31+
`[${attributeName}="${attributeValue}"]`,
3232
) as HTMLElement; // Found a matching ancestor
3333
}
3434

packages/uui-base/lib/utils/math.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const clamp = (value: number, min: number, max: number) => {
1919
export const reverseNumberInRange = (
2020
num: number,
2121
min: number,
22-
max: number
22+
max: number,
2323
): number => {
2424
return max + min - num;
2525
};

packages/uui-boolean-input/lib/uui-boolean-input.element.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type LabelPosition = 'left' | 'right' | 'top' | 'bottom';
1313
* @abstract
1414
*/
1515
export abstract class UUIBooleanInputElement extends FormControlMixin(
16-
LabelMixin('', LitElement)
16+
LabelMixin('', LitElement),
1717
) {
1818
/** intentional overwrite of FormControlMixins value getter and setter method. */
1919
get value() {
@@ -28,7 +28,7 @@ export abstract class UUIBooleanInputElement extends FormControlMixin(
2828
'setFormValue' in window.ElementInternals.prototype
2929
) {
3030
this._internals.setFormValue(
31-
this._checked && this.name !== '' ? this._value : null
31+
this._checked && this.name !== '' ? this._value : null,
3232
);
3333
}
3434

@@ -65,7 +65,7 @@ export abstract class UUIBooleanInputElement extends FormControlMixin(
6565
? this._value
6666
? this._value
6767
: 'on'
68-
: null
68+
: null,
6969
);
7070
this.requestUpdate('checked', oldValue);
7171
}
@@ -113,7 +113,7 @@ export abstract class UUIBooleanInputElement extends FormControlMixin(
113113
}
114114

115115
protected firstUpdated(
116-
_changedProperties: Map<string | number | symbol, unknown>
116+
_changedProperties: Map<string | number | symbol, unknown>,
117117
): void {
118118
super.firstUpdated(_changedProperties);
119119

0 commit comments

Comments
 (0)