Skip to content

Commit 0c38b41

Browse files
committed
fix: lint and build
1 parent 7661f4c commit 0c38b41

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export { default } from "@mendix/eslint-config-web-widgets";
1+
import config from "@mendix/eslint-config-web-widgets/widget-ts.mjs";
2+
3+
export default config;

packages/pluggableWidgets/checkbox-radio-selection-web/src/components/CaptionContent.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { createElement, PropsWithChildren, ReactElement } from "react";
2-
import { MouseEvent } from "react";
1+
import { createElement, PropsWithChildren, ReactElement, MouseEvent } from "react";
32

43
export interface CaptionContentProps extends PropsWithChildren {
54
htmlFor?: string;

packages/pluggableWidgets/checkbox-radio-selection-web/src/helpers/Association/Preview/AssociationPreviewSelector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ export class AssociationPreviewSelector implements SingleSelector {
3535
});
3636
}
3737

38-
updateProps() {}
39-
setValue() {}
38+
updateProps(): void {}
39+
setValue(): void {}
4040
}

packages/pluggableWidgets/checkbox-radio-selection-web/src/helpers/BaseOptionsProvider.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ export class BaseOptionsProvider<T = unknown, P = object> implements OptionsProv
66

77
searchTerm = "";
88

9-
constructor(_caption: CaptionsProvider) {
10-
// Caption provider stored for potential future use
11-
}
9+
constructor(protected caption: CaptionsProvider) {}
1210

1311
get hasMore(): boolean {
1412
return false;
@@ -22,11 +20,11 @@ export class BaseOptionsProvider<T = unknown, P = object> implements OptionsProv
2220
return "available";
2321
}
2422

25-
get sortOrder() {
23+
get sortOrder(): undefined {
2624
return undefined;
2725
}
2826

29-
get datasourceFilter() {
27+
get datasourceFilter(): undefined {
3028
return undefined;
3129
}
3230

packages/pluggableWidgets/checkbox-radio-selection-web/src/helpers/Database/Preview/DatabasePreviewSelector.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export class DatabasePreviewSelector implements SingleSelector {
3535
// Show dropzones in design mode when custom content is enabled
3636
}
3737

38-
updateProps() {}
39-
setValue() {}
38+
updateProps(): void {}
39+
setValue(): void {}
4040
}
4141

4242
export class DatabaseMultiPreviewSelector implements MultiSelector {
@@ -68,6 +68,6 @@ export class DatabaseMultiPreviewSelector implements MultiSelector {
6868
return this.currentId || [];
6969
}
7070

71-
updateProps() {}
72-
setValue() {}
71+
updateProps(): void {}
72+
setValue(): void {}
7373
}

packages/pluggableWidgets/checkbox-radio-selection-web/src/helpers/Static/Preview/StaticPreviewSelector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ export class StaticPreviewSelector implements SingleSelector {
3030
this.options = new PreviewOptionsProvider(this.caption, new Map());
3131
}
3232

33-
updateProps() {}
34-
setValue() {}
33+
updateProps(): void {}
34+
setValue(): void {}
3535
}

packages/pluggableWidgets/checkbox-radio-selection-web/src/helpers/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ interface SelectorBase<T, V> {
6969
customContentType: OptionsSourceCustomContentTypeEnum;
7070
}
7171

72+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
7273
export interface SingleSelector extends SelectorBase<"single", string> {}
7374

7475
export interface MultiSelector extends SelectorBase<"multi", string[]> {

0 commit comments

Comments
 (0)