🎥 Make videos programmatically with React
fix lints
Jonny Burger2323c08e3670
diff --git a/packages/cli/src/config/codec.ts b/packages/cli/src/config/codec.tsindex 398c3b498b..14ef2bd960 100644--- a/packages/cli/src/config/codec.ts+++ b/packages/cli/src/config/codec.ts@@ -1,5 +1,6 @@import type {CodecOrUndefined} from '@remotion/renderer';import {RenderInternals} from '@remotion/renderer';+import {Log} from '../log';const validLegacyFormats = ['mp4', 'png-sequence'] as const;@@ -42,7 +43,7 @@ export const setOutputFormat = (newLegacyFormat: LegacyFormat) => {);}- console.warn(+ Log.warn('setOutputFormat() is deprecated. Use the setCodec() and setImageSequence() instead.');if (newLegacyFormat === 'mp4') {diff --git a/packages/cli/src/test/expect-to-throw.ts b/packages/cli/src/test/expect-to-throw.tsindex 2a31ce7377..c2a5003c13 100644--- a/packages/cli/src/test/expect-to-throw.ts+++ b/packages/cli/src/test/expect-to-throw.ts@@ -5,10 +5,12 @@ export const expectToThrow = (func: Function, err: RegExp) => {// so we mock that out to avoid the wall of red text.vitest.spyOn(console, 'error');// @ts-expect-error+ // eslint-disable-next-line no-consoleconsole.error.mockImplementation(() => undefined);expect(func).toThrow(err);// @ts-expect-error+ // eslint-disable-next-line no-consoleconsole.error.mockRestore();};diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.tsindex 4b94295e33..87ad1a60d0 100644--- a/packages/example/remotion.config.ts+++ b/packages/example/remotion.config.ts@@ -1,4 +1,4 @@-import {Config} from 'remotion';+import {Config} from '@remotion/cli';import {webpackOverride} from './src/webpack-override';Config.Output.setOverwriteOutput(true);