Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

remove todos, lint

Oleg Isonen1b8b692b7337
diff --git a/apps/designer/app/canvas/shared/styles.ts b/apps/designer/app/canvas/shared/styles.ts
index 9e7fac2c34..e071e15356 100644
--- a/apps/designer/app/canvas/shared/styles.ts
+++ b/apps/designer/app/canvas/shared/styles.ts
@@ -155,7 +155,7 @@ const addRule = (id: string, cssRule: CssRule) => {
return rule;
};
-const getRule = (id: string, breakpoint: string) => {
+const getRule = (id: string, breakpoint?: string) => {
const key = id + breakpoint;
return wrappedRulesMap.get(key);
};
diff --git a/apps/designer/app/designer/features/style-panel/shared/get-inherited-style.ts b/apps/designer/app/designer/features/style-panel/shared/get-inherited-style.ts
index 67810914af..f2713690de 100644
--- a/apps/designer/app/designer/features/style-panel/shared/get-inherited-style.ts
+++ b/apps/designer/app/designer/features/style-panel/shared/get-inherited-style.ts
@@ -15,7 +15,6 @@ const propertyNames = Object.keys(properties) as (keyof typeof properties)[];
// All inheritable properties we support
const inheritableProperties: InheritableProperties = propertyNames.reduce(
(acc: InheritableProperties, property) => {
- // @todo
const config = properties[property];
if (config.inherited) {
acc[property as StyleProperty] = true;
diff --git a/apps/designer/app/designer/features/style-panel/shared/use-style-data.ts b/apps/designer/app/designer/features/style-panel/shared/use-style-data.ts
index 942716ed3c..3f68ddeba7 100644
--- a/apps/designer/app/designer/features/style-panel/shared/use-style-data.ts
+++ b/apps/designer/app/designer/features/style-panel/shared/use-style-data.ts
@@ -135,7 +135,6 @@ export const useStyleData = ({
publishUpdates("update", updates);
const nextStyle = updates.reduce(
(currentStyle, { property, value }) => {
- // @todo
currentStyle[property] = value;
return currentStyle;
},
diff --git a/packages/react-sdk/src/css/get-browser-style.ts b/packages/react-sdk/src/css/get-browser-style.ts
index 41635fbc3d..e014b370e7 100644
--- a/packages/react-sdk/src/css/get-browser-style.ts
+++ b/packages/react-sdk/src/css/get-browser-style.ts
@@ -20,7 +20,6 @@ const parseValue = (
}
if (number === 0 && property in properties) {
- // @todo
return properties[property].initial;
}