diff --git a/packages/pluggableWidgets/rating-web/src/StarRating.editorPreview.tsx b/packages/pluggableWidgets/rating-web/src/StarRating.editorPreview.tsx
index a4a878381c..2cf37de3be 100644
--- a/packages/pluggableWidgets/rating-web/src/StarRating.editorPreview.tsx
+++ b/packages/pluggableWidgets/rating-web/src/StarRating.editorPreview.tsx
@@ -28,7 +28,7 @@ export function preview(props: StarRatingPreviewProps): ReactElement {
fullIcon={fullIcon}
maximumValue={props.maximumStars ?? 5}
style={parseStyle(props.style)}
- value={Number(props.maximumStars ?? 5) - 1}
+ value={(props.maximumStars ?? 5) - 1}
/>
);
}
diff --git a/packages/pluggableWidgets/rating-web/src/components/Rating.tsx b/packages/pluggableWidgets/rating-web/src/components/Rating.tsx
index f20ab32da6..636ce350a4 100644
--- a/packages/pluggableWidgets/rating-web/src/components/Rating.tsx
+++ b/packages/pluggableWidgets/rating-web/src/components/Rating.tsx
@@ -94,9 +94,9 @@ export function Rating(props: RatingProps): ReactElement {
role="radio"
tabIndex={index === Math.max(props.value - 1, 0) ? 0 : -1}
>
- {Number(currentIndex) <= props.value ? (
+ {currentIndex <= props.value ? (
props.fullIcon
- ) : hover && currentIndex <= Number(hover) ? (
+ ) : hover && currentIndex <= hover ? (
{props.fullIcon}
) : (
props.emptyIcon
diff --git a/packages/pluggableWidgets/rich-text-web/.eslintignore b/packages/pluggableWidgets/rich-text-web/.eslintignore
deleted file mode 100644
index d3834116c6..0000000000
--- a/packages/pluggableWidgets/rich-text-web/.eslintignore
+++ /dev/null
@@ -1,2 +0,0 @@
-src/assets
-src/utils/mammoth.browser.js
diff --git a/packages/pluggableWidgets/rich-text-web/src/components/CustomToolbars/presets.ts b/packages/pluggableWidgets/rich-text-web/src/components/CustomToolbars/presets.ts
index 918b17ad30..f4534048b8 100644
--- a/packages/pluggableWidgets/rich-text-web/src/components/CustomToolbars/presets.ts
+++ b/packages/pluggableWidgets/rich-text-web/src/components/CustomToolbars/presets.ts
@@ -13,7 +13,7 @@ function defineBasicGroups(widgetProps: Partial): toolba
const enabledGroups: Array = Object.entries(widgetProps).map(([prop, enabled]) => {
if (Object.hasOwn(TOOLBAR_GROUP, prop) && enabled) {
return {
- children: TOOLBAR_GROUP[prop.toString()]
+ children: TOOLBAR_GROUP[prop]
};
} else {
return undefined;
diff --git a/packages/shared/eslint-config-web-widgets/widget-ts.mjs b/packages/shared/eslint-config-web-widgets/widget-ts.mjs
index 155a18dab6..f8f9e7f388 100644
--- a/packages/shared/eslint-config-web-widgets/widget-ts.mjs
+++ b/packages/shared/eslint-config-web-widgets/widget-ts.mjs
@@ -154,6 +154,7 @@ export default tseslint.config(
"@typescript-eslint/no-empty-object-type": "warn",
"@typescript-eslint/no-unsafe-function-type": "warn",
"@typescript-eslint/no-wrapper-object-types": "warn",
+ "@typescript-eslint/no-unnecessary-type-conversion": "error",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/camelcase": "off",