Skip to content

🎥 Make videos programmatically with React

house keeping with TODO comments

Jonny Burger36df321d61e3
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx
index 3a9fa82d1c..de838187b5 100644
--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx
+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx
@@ -63,8 +63,6 @@ export const ZodSwitch: React.FC<{
const zodTypes = useZodTypesIfPossible();
- // TODO: (Maybe?) enable saving of inserted input props by cmd+s /ctrl + s (also for JSON view)
-
if (typeName === z.ZodFirstPartyTypeKind.ZodObject) {
return (
<ZodObjectEditor
diff --git a/packages/create-video/src/test/validate-templates.test.ts b/packages/create-video/src/test/validate-templates.test.ts
index 3df5c39f81..224216f4ca 100644
--- a/packages/create-video/src/test/validate-templates.test.ts
+++ b/packages/create-video/src/test/validate-templates.test.ts
@@ -31,7 +31,7 @@ describe('Templates should be valid', () => {
expect(body.scripts.build).not.toContain('index');
}
- // TODO: Enable this for v4
+ // TODO: Enable this after v4
// expect(body.dependencies.remotion).toMatch(/^\^?4/);
// expect(body.dependencies['@remotion/cli']).toMatch(/^\^?4/);
expect(body.dependencies.react).toMatch(/^\^?18/);
diff --git a/packages/docs/docs/schemas.md b/packages/docs/docs/schemas.md
index 184ea9ca14..197fd3b05c 100644
--- a/packages/docs/docs/schemas.md
+++ b/packages/docs/docs/schemas.md
@@ -6,10 +6,7 @@ sidebar_label: Defining a schema
crumb: "How To"
---
-As an alternative to [using TypeScript types](/docs/parametrized-rendering) to define the shape of the props your component accepts, you may use [Zod](https://zod.dev/) to define a schema for your props. You may do so if you want to:
-
-<Step>1</Step> Validate the props during rendering. [TODO] <br/>
-<Step>2</Step> Edit the props visually in the Remotion Studio.
+As an alternative to [using TypeScript types](/docs/parametrized-rendering) to define the shape of the props your component accepts, you may use [Zod](https://zod.dev/) to define a schema for your props. You may do so if you want to edit the props visually in the Remotion Studio.
## Prerequisites
diff --git a/packages/eslint-config/src/index.ts b/packages/eslint-config/src/index.ts
index 7589b1c3b8..96a6752985 100644
--- a/packages/eslint-config/src/index.ts
+++ b/packages/eslint-config/src/index.ts
@@ -314,7 +314,6 @@ const getRules = (typescript: boolean) => {
"always",
{
// Workaround to allow class fields to not have lines between them.
- // TODO: Get ESLint to add an option to ignore class fields.
exceptAfterSingleLine: true,
},
],
@@ -394,7 +393,6 @@ const getRules = (typescript: boolean) => {
{
// `array` is disabled because it forces destructuring on
// stupid stuff like `foo.bar = process.argv[2];`
- // TODO: Open ESLint issue about this
VariableDeclarator: {
array: false,
object: true,
diff --git a/packages/renderer/src/compositor/compositor.ts b/packages/renderer/src/compositor/compositor.ts
index 7e128c3570..11005c29d8 100644
--- a/packages/renderer/src/compositor/compositor.ts
+++ b/packages/renderer/src/compositor/compositor.ts
@@ -320,7 +320,6 @@ export const startCompositor = <T extends keyof CompositorCommand>(
params,
},
};
- // TODO: Should have a way to error out a single task
child.stdin.write(JSON.stringify(composed) + '\n');
waiters.set(nonce, {
resolve: _resolve,