Skip to content

🎥 Make videos programmatically with React

upgrade prettier to fix formatting

Jonny Burgerfbe481575672
diff --git a/packages/bundler/src/homepage/homepage.tsx b/packages/bundler/src/homepage/homepage.tsx
index 0aec7be77e..cf30c35529 100644
--- a/packages/bundler/src/homepage/homepage.tsx
+++ b/packages/bundler/src/homepage/homepage.tsx
@@ -107,7 +107,7 @@ const AvailableCompositions: React.FC = () => {
? []
: state.comps.map((c) => {
return <li key={c}>{c}</li>;
- })}
+ })}
</ul>
</div>
);
diff --git a/packages/bundler/src/index-html.ts b/packages/bundler/src/index-html.ts
index 66084d159a..a4406566aa 100644
--- a/packages/bundler/src/index-html.ts
+++ b/packages/bundler/src/index-html.ts
@@ -111,7 +111,7 @@ ${
inputProps
? `<script>window.remotion_inputProps = ${JSON.stringify(
JSON.stringify(inputProps),
- )};</script>
+ )};</script>
`
: ''
}
@@ -119,7 +119,7 @@ ${
renderQueue
? `<script>window.remotion_initialRenderQueue = ${JSON.stringify(
renderQueue,
- )};</script>
+ )};</script>
`
: ''
}
diff --git a/packages/bundler/src/webpack-config.ts b/packages/bundler/src/webpack-config.ts
index 888d3e2729..590addb832 100644
--- a/packages/bundler/src/webpack-config.ts
+++ b/packages/bundler/src/webpack-config.ts
@@ -80,10 +80,10 @@ export const webpackConfig = ({
lazyCompilation: isBun
? false
: environment === 'production'
- ? false
- : {
- entries: false,
- },
+ ? false
+ : {
+ entries: false,
+ },
},
watchOptions: {
poll: poll ?? undefined,
@@ -118,7 +118,7 @@ export const webpackConfig = ({
keyboardShortcutsEnabled,
}),
new AllowOptionalDependenciesPlugin(),
- ]
+ ]
: [
new ProgressPlugin((p) => {
if (onProgress) {
@@ -129,7 +129,7 @@ export const webpackConfig = ({
}
}),
new AllowOptionalDependenciesPlugin(),
- ],
+ ],
output: {
hashFunction: 'xxhash64',
filename: NoReactInternals.bundleName,
@@ -174,7 +174,7 @@ export const webpackConfig = ({
environment === 'development'
? {
loader: require.resolve('./fast-refresh/loader.js'),
- }
+ }
: null,
].filter(truthy),
},
@@ -193,7 +193,7 @@ export const webpackConfig = ({
environment === 'development'
? {
loader: require.resolve('./fast-refresh/loader.js'),
- }
+ }
: null,
].filter(truthy),
},
@@ -212,7 +212,7 @@ export const webpackConfig = ({
type: 'filesystem',
name: getWebpackCacheName(environment, hash),
version: hash,
- }
+ }
: false,
output: {
...conf.output,
diff --git a/packages/cli/src/download-progress.ts b/packages/cli/src/download-progress.ts
index bee15b4adb..880f6c421a 100644
--- a/packages/cli/src/download-progress.ts
+++ b/packages/cli/src/download-progress.ts
@@ -44,10 +44,10 @@ export const makeMultiDownloadProgress = (progresses: DownloadProgress[]) => {
? makeProgressBar(
progresses.reduce((a, b) => a + (b.progress as number), 0) /
progresses.length,
- )
+ )
: getFileSizeDownloadBar(
progresses.reduce((a, b) => a + b.downloaded, 0),
- ),
+ ),
`Downloading ${progresses.length} files`,
]
.filter(truthy)
diff --git a/packages/cli/src/get-cli-options.ts b/packages/cli/src/get-cli-options.ts
index d1dc6e44b1..fc582db213 100644
--- a/packages/cli/src/get-cli-options.ts
+++ b/packages/cli/src/get-cli-options.ts
@@ -122,7 +122,7 @@ export const getCliOptions = async (options: {
? true
: getAndValidateShouldOutputImageSequence({
frameRange,
- });
+ });
const overwrite = ConfigInternals.getShouldOverwrite({
defaultValue: !options.isLambda,
diff --git a/packages/cli/src/progress-bar.ts b/packages/cli/src/progress-bar.ts
index 2a849c396f..50ae48dd1a 100644
--- a/packages/cli/src/progress-bar.ts
+++ b/packages/cli/src/progress-bar.ts
@@ -205,8 +205,8 @@ const makeStitchingProgress = ({
codec === 'gif'
? 'GIF'
: RenderInternals.isAudioCodec(codec)
- ? 'audio'
- : 'video';
+ ? 'audio'
+ : 'video';
return [
`(${stitchingStep + 1}/${steps})`,
@@ -246,7 +246,7 @@ export const makeRenderingAndStitchingProgress = ({
steps,
stitchingStep,
isUsingParallelEncoding,
- }),
+ }),
]
.filter(truthy)
.join('\n');
diff --git a/packages/cli/src/render-flows/render.ts b/packages/cli/src/render-flows/render.ts
index 5781bb8dde..0d5b2af9ea 100644
--- a/packages/cli/src/render-flows/render.ts
+++ b/packages/cli/src/render-flows/render.ts
@@ -369,7 +369,7 @@ export const renderVideoFlow = async ({
? absoluteOutputFile
: await fs.promises.mkdtemp(
path.join(os.tmpdir(), 'react-motion-render'),
- );
+ );
Log.verbose({indent, logLevel}, 'Output dir', outputDir);
diff --git a/packages/core/src/Composition.tsx b/packages/core/src/Composition.tsx
index c759184b34..9f60a3f5af 100644
--- a/packages/core/src/Composition.tsx
+++ b/packages/core/src/Composition.tsx
@@ -107,9 +107,9 @@ export const ClipComposition: React.FC<PropsWithChildren> = ({children}) => {
clipRegion && clipRegion !== 'hide'
? `polygon(${clipRegion.x}px ${clipRegion.y}px, ${clipRegion.x}px ${
clipRegion.height + clipRegion.y
- }px, ${clipRegion.width + clipRegion.x}px ${
+ }px, ${clipRegion.width + clipRegion.x}px ${
clipRegion.height + clipRegion.y
- }px, ${clipRegion.width + clipRegion.x}px ${clipRegion.y}px)`
+ }px, ${clipRegion.width + clipRegion.x}px ${clipRegion.y}px)`
: undefined,
};
}, [clipRegion]);
diff --git a/packages/core/src/Sequence.tsx b/packages/core/src/Sequence.tsx
index 745e965826..0410fb587e 100644
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@ -199,8 +199,8 @@ const SequenceRefForwardingFunction: React.ForwardRefRenderFunction<
absoluteFrame < cumulatedFrom + from
? null
: absoluteFrame > endThreshold
- ? null
- : children;
+ ? null
+ : children;
const styleIfThere = other.layout === 'none' ? undefined : other.style;
diff --git a/packages/core/src/props-if-has-props.ts b/packages/core/src/props-if-has-props.ts
index e187277d6a..c60ed3c39f 100644
--- a/packages/core/src/props-if-has-props.ts
+++ b/packages/core/src/props-if-has-props.ts
@@ -16,11 +16,11 @@ export type PropsIfHasProps<
? {
// Neither props nor schema specified
defaultProps?: {};
- }
+ }
: // All the other cases
- {
+ {
defaultProps: InferProps<Schema, Props>;
- };
+ };
export type InferProps<
Schema extends AnyZodObject,
@@ -28,11 +28,11 @@ export type InferProps<
> = AnyZodObject extends Schema
? {} extends Props
? // Neither props nor schema specified
- Record<string, unknown>
+ Record<string, unknown>
: // Only props specified
- Props
+ Props
: {} extends Props
- ? // Only schema specified
- z.input<Schema>
- : // Props and schema specified
- z.input<Schema> & Props;
+ ? // Only schema specified
+ z.input<Schema>
+ : // Props and schema specified
+ z.input<Schema> & Props;
diff --git a/packages/core/src/resolve-video-config.ts b/packages/core/src/resolve-video-config.ts
index 1fa3ad03ff..7dea2846e4 100644
--- a/packages/core/src/resolve-video-config.ts
+++ b/packages/core/src/resolve-video-config.ts
@@ -83,7 +83,7 @@ export const resolveVideoConfig = ({
defaultProps: composition.defaultProps ?? {},
props: originalProps,
abortSignal: signal,
- })
+ })
: null;
if (
diff --git a/packages/core/src/spring/index.ts b/packages/core/src/spring/index.ts
index 1ed9140ea9..decbbbe008 100644
--- a/packages/core/src/spring/index.ts
+++ b/packages/core/src/spring/index.ts
@@ -61,20 +61,20 @@ export function spring({
from,
to,
threshold: durationRestThreshold,
- })
+ })
: undefined;
const naturalDurationGetter = needsToCalculateNaturalDuration
? {
get: () => naturalDuration as number,
- }
+ }
: {
get: () => {
throw new Error(
'did not calculate natural duration, this is an error with Remotion. Please report',
);
},
- };
+ };
const reverseProcessed = reverse
? (passedDurationInFrames ?? naturalDurationGetter.get()) - passedFrame
diff --git a/packages/create-video/src/open-in-editor.ts b/packages/create-video/src/open-in-editor.ts
index 9c08981ae8..a5a5fa38d4 100644
--- a/packages/create-video/src/open-in-editor.ts
+++ b/packages/create-video/src/open-in-editor.ts
@@ -506,13 +506,13 @@ export async function launchEditor({
const args = shouldOpenVsCodeNewWindow
? ['--new-window', fileName]
: lineNumber
- ? getArgumentsForLineNumber(
- editor.command,
- fileName,
- String(lineNumber),
- colNumber,
- )
- : [fileName];
+ ? getArgumentsForLineNumber(
+ editor.command,
+ fileName,
+ String(lineNumber),
+ colNumber,
+ )
+ : [fileName];
if (_childProcess && isTerminalEditor(editor.command)) {
// There's an existing editor process already and it's attached
diff --git a/packages/example/src/BetaText/index.tsx b/packages/example/src/BetaText/index.tsx
index 3e397cce8b..c4206575f0 100644
--- a/packages/example/src/BetaText/index.tsx
+++ b/packages/example/src/BetaText/index.tsx
@@ -144,12 +144,12 @@ const BetaText = ({
key === 7
? 'ONE'
: key === 5
- ? 'REMOTION'
- : key === 3
- ? word1 ?? 'COOL'
- : key === 1
- ? 'LIT'
- : 'BETA'
+ ? 'REMOTION'
+ : key === 3
+ ? word1 ?? 'COOL'
+ : key === 1
+ ? 'LIT'
+ : 'BETA'
}
i={key}
videoWidth={videoConfig.width}
diff --git a/packages/example/src/webpack-override.mjs b/packages/example/src/webpack-override.mjs
index e29e22b717..dde916616d 100644
--- a/packages/example/src/webpack-override.mjs
+++ b/packages/example/src/webpack-override.mjs
@@ -9,15 +9,17 @@ const WEBPACK_OR_ESBUILD = 'esbuild';
export const webpackOverride = (currentConfiguration) => {
const replaced = (() => {
if (WEBPACK_OR_ESBUILD === 'webpack') {
- const {replaceLoadersWithBabel} = require(path.join(
- // eslint-disable-next-line no-undef
- process.cwd(),
- '..',
- '..',
- 'example',
- 'node_modules',
- '@remotion/babel-loader',
- ));
+ const {replaceLoadersWithBabel} = require(
+ path.join(
+ // eslint-disable-next-line no-undef
+ process.cwd(),
+ '..',
+ '..',
+ 'example',
+ 'node_modules',
+ '@remotion/babel-loader',
+ ),
+ );
return replaceLoadersWithBabel(currentConfiguration);
}
diff --git a/packages/lambda/src/admin/make-layer-public.ts b/packages/lambda/src/admin/make-layer-public.ts
index d157afa53e..149d617c3b 100644
--- a/packages/lambda/src/admin/make-layer-public.ts
+++ b/packages/lambda/src/admin/make-layer-public.ts
@@ -51,8 +51,8 @@ const makeLayerPublic = async () => {
layer === 'chromium'
? 'Chromium 114, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
: layer === 'ffmpeg'
- ? 'FFmpeg 6.0, compiled from source. Read FFMPEG license: https://ffmpeg.org/legal.html'
- : 'Contains Noto Sans font. Read Noto Sans License: https://fonts.google.com/noto/specimen/Noto+Sans/about',
+ ? 'FFmpeg 6.0, compiled from source. Read FFMPEG license: https://ffmpeg.org/legal.html'
+ : 'Contains Noto Sans font. Read Noto Sans License: https://fonts.google.com/noto/specimen/Noto+Sans/about',
CompatibleRuntimes: runtimes,
Description: VERSION,
}),
diff --git a/packages/lambda/src/api/__mocks__/mock-s3.ts b/packages/lambda/src/api/__mocks__/mock-s3.ts
index f5d9dacdb6..b5ce028043 100644
--- a/packages/lambda/src/api/__mocks__/mock-s3.ts
+++ b/packages/lambda/src/api/__mocks__/mock-s3.ts
@@ -38,8 +38,8 @@ export const writeMockS3File = ({
privacy === 'no-acl'
? 'none'
: privacy === 'public'
- ? 'public-read'
- : 'private',
+ ? 'public-read'
+ : 'private',
bucketName,
key,
region,
diff --git a/packages/lambda/src/api/upload-dir.ts b/packages/lambda/src/api/upload-dir.ts
index 542fd53b86..b759757140 100644
--- a/packages/lambda/src/api/upload-dir.ts
+++ b/packages/lambda/src/api/upload-dir.ts
@@ -65,7 +65,7 @@ async function getFiles(
name: res,
size,
},
- ];
+ ];
}),
);
return _files.flat(1);
@@ -108,8 +108,8 @@ export const uploadDir = async ({
privacy === 'no-acl'
? undefined
: privacy === 'private'
- ? 'private'
- : 'public-read';
+ ? 'private'
+ : 'public-read';
const paralellUploads3 = new Upload({
client,
diff --git a/packages/lambda/src/cli/commands/render/progress.ts b/packages/lambda/src/cli/commands/render/progress.ts
index 194fbe42e0..3d05b51776 100644
--- a/packages/lambda/src/cli/commands/render/progress.ts
+++ b/packages/lambda/src/cli/commands/render/progress.ts
@@ -160,7 +160,7 @@ const makeDownloadProgress = (
? CliInternals.getFileSizeDownloadBar(downloadInfo.downloaded)
: CliInternals.makeProgressBar(
downloadInfo.downloaded / downloadInfo.totalSize,
- ),
+ ),
`${downloadInfo.doneIn === null ? 'Downloading' : 'Downloaded'} video`,
downloadInfo.doneIn === null
? [
@@ -168,7 +168,7 @@ const makeDownloadProgress = (
downloadInfo.totalSize === null
? null
: `${CliInternals.formatBytes(downloadInfo.totalSize)}`,
- ]
+ ]
.filter(NoReactInternals.truthy)
.join('/')
: CliInternals.chalk.gray(`${downloadInfo.doneIn}ms`),
@@ -188,7 +188,7 @@ export const makeMultiProgressFromStatus = (
? RenderInternals.getFramesToRender(
status.renderMetadata.frameRange,
status.renderMetadata.everyNthFrame,
- ).length
+ ).length
: null,
},
encodingProgress: {
diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.ts
index a527f5dc8a..05e7352a1a 100644
--- a/packages/lambda/src/cli/commands/render/render.ts
+++ b/packages/lambda/src/cli/commands/render/render.ts
@@ -35,7 +35,7 @@ function getTotalFrames(status: RenderProgress): number | null {
? RenderInternals.getFramesToRender(
status.renderMetadata.frameRange,
status.renderMetadata.everyNthFrame,
- ).length
+ ).length
: null;
}
@@ -208,7 +208,7 @@ export const renderCommand = async (
url: parsedLambdaCli.webhook,
secret: parsedLambdaCli['webhook-secret'] ?? null,
customData: webhookCustomData,
- }
+ }
: null,
rendererFunctionName: parsedLambdaCli['renderer-function-name'] ?? null,
forceBucketName: parsedLambdaCli['force-bucket-name'] ?? null,
diff --git a/packages/lambda/src/cli/helpers/progress-bar.ts b/packages/lambda/src/cli/helpers/progress-bar.ts
index e2b385bde5..6c581073d6 100644
--- a/packages/lambda/src/cli/helpers/progress-bar.ts
+++ b/packages/lambda/src/cli/helpers/progress-bar.ts
@@ -80,7 +80,7 @@ export const makeDeployProgressBar = ({
? typeof totalSize === 'number'
? `${CliInternals.formatBytes(sizeUploaded)}/${CliInternals.formatBytes(
totalSize,
- )}`
+ )}`
: ''
: CliInternals.chalk.gray(`${doneIn}ms`),
makeUploadDiff({stats}),
diff --git a/packages/lambda/src/functions/compositions.ts b/packages/lambda/src/functions/compositions.ts
index 3b88c8e94f..f80fc00625 100644
--- a/packages/lambda/src/functions/compositions.ts
+++ b/packages/lambda/src/functions/compositions.ts
@@ -49,7 +49,7 @@ export const compositionsHandler = async (
region,
enableFolderExpiry: null,
customCredentials: null,
- }).then((b) => b.bucketName);
+ }).then((b) => b.bucketName);
const bucketName = await bucketNamePromise;
const serializedInputPropsWithCustomSchema = await decompressInputProps({
diff --git a/packages/lambda/src/functions/helpers/get-progress.ts b/packages/lambda/src/functions/helpers/get-progress.ts
index 7c6e700c2d..5ac7ccf0ec 100644
--- a/packages/lambda/src/functions/helpers/get-progress.ts
+++ b/packages/lambda/src/functions/helpers/get-progress.ts
@@ -129,7 +129,7 @@ export const getProgress = async ({
renderId,
region: getCurrentRegionInFunction(),
expectedBucketOwner,
- })
+ })
: null,
inspectErrors({
contents,
@@ -159,7 +159,7 @@ export const getProgress = async ({
renderMetadata,
region,
customCredentials,
- })
+ })
: null;
const priceFromBucket = estimatePriceFromBucket({
@@ -193,7 +193,7 @@ export const getProgress = async ({
frameRange: renderMetadata.frameRange,
framesPerLambda: renderMetadata.framesPerLambda,
renderId,
- })
+ })
: 0;
const allChunks = chunks.length === (renderMetadata?.totalChunks ?? Infinity);
@@ -215,7 +215,7 @@ export const getProgress = async ({
? RenderInternals.getFramesToRender(
renderMetadata.frameRange,
renderMetadata.everyNthFrame,
- ).length
+ ).length
: null;
const encodingStatus = getEncodingMetadata({
@@ -268,7 +268,7 @@ export const getProgress = async ({
chunks,
renderId,
missingChunks: missingChunks ?? [],
- })
+ })
: null,
...errorExplanations,
].filter(NoReactInternals.truthy);
@@ -297,7 +297,7 @@ export const getProgress = async ({
contents,
renderId,
type: 'absolute-time',
- })
+ })
: null,
overallProgress: getOverallProgress({
cleanup: cleanup ? cleanup.filesDeleted / cleanup.minFilesToDelete : 0,
@@ -307,7 +307,7 @@ export const getProgress = async ({
: 0,
invoking: renderMetadata
? lambdasInvokedStats.lambdasInvoked /
- renderMetadata.estimatedRenderLambdaInvokations
+ renderMetadata.estimatedRenderLambdaInvokations
: 0,
rendering: renderMetadata ? chunkCount / renderMetadata.totalChunks : 0,
frames: frameCount === null ? 0 : framesRendered / frameCount,
diff --git a/packages/lambda/src/functions/helpers/io.ts b/packages/lambda/src/functions/helpers/io.ts
index 909bacece9..b166b96075 100644
--- a/packages/lambda/src/functions/helpers/io.ts
+++ b/packages/lambda/src/functions/helpers/io.ts
@@ -126,8 +126,8 @@ export const tryLambdaWriteFile = async ({
privacy === 'no-acl'
? undefined
: privacy === 'private'
- ? 'private'
- : 'public-read',
+ ? 'private'
+ : 'public-read',
ExpectedBucketOwner: customCredentials
? undefined
: expectedBucketOwner ?? undefined,
diff --git a/packages/lambda/src/functions/helpers/merge-chunks.ts b/packages/lambda/src/functions/helpers/merge-chunks.ts
index 02ce35088a..eacb9fd2fd 100644
--- a/packages/lambda/src/functions/helpers/merge-chunks.ts
+++ b/packages/lambda/src/functions/helpers/merge-chunks.ts
@@ -217,7 +217,7 @@ export const mergeChunksAndFinishRender = async (options: {
bucket: options.bucketName,
contents,
jobs,
- });
+ });
const cleanupSerializedInputPropsProm = cleanupSerializedInputProps({
bucketName: options.bucketName,
diff --git a/packages/lambda/src/shared/aws-clients.ts b/packages/lambda/src/shared/aws-clients.ts
index 5f3e938932..eb55d4f7f2 100644
--- a/packages/lambda/src/shared/aws-clients.ts
+++ b/packages/lambda/src/shared/aws-clients.ts
@@ -211,7 +211,7 @@ export const getServiceClient = <T extends keyof ServiceMapping>({
? {
accessKeyId: customCredentials.accessKeyId,
secretAccessKey: customCredentials.secretAccessKey,
- }
+ }
: undefined,
endpoint: customCredentials.endpoint,
});
diff --git a/packages/player/src/PlayerUI.tsx b/packages/player/src/PlayerUI.tsx
index 28665b1a48..405e48bdd0 100644
--- a/packages/player/src/PlayerUI.tsx
+++ b/packages/player/src/PlayerUI.tsx
@@ -454,7 +454,7 @@ const PlayerUI: React.ForwardRefRenderFunction<
? renderLoading({
height: outerStyle.height as number,
width: outerStyle.width as number,
- })
+ })
: null;
}, [outerStyle.height, outerStyle.width, renderLoading]);
@@ -472,7 +472,7 @@ const PlayerUI: React.ForwardRefRenderFunction<
posterFillMode === 'player-size'
? (outerStyle.width as number)
: config.width,
- })
+ })
: null;
if (poster === undefined) {
diff --git a/packages/player/src/ThumbnailUI.tsx b/packages/player/src/ThumbnailUI.tsx
index 54204e1788..41b37aa2b5 100644
--- a/packages/player/src/ThumbnailUI.tsx
+++ b/packages/player/src/ThumbnailUI.tsx
@@ -111,7 +111,7 @@ const ThumbnailUI: React.ForwardRefRenderFunction<
? renderLoading({
height: outerStyle.height as number,
width: outerStyle.width as number,
- })
+ })
: null;
}, [outerStyle.height, outerStyle.width, renderLoading]);
diff --git a/packages/player/src/utils/props-if-has-props.ts b/packages/player/src/utils/props-if-has-props.ts
index 22a7af9436..1431a9172c 100644
--- a/packages/player/src/utils/props-if-has-props.ts
+++ b/packages/player/src/utils/props-if-has-props.ts
@@ -8,17 +8,17 @@ export type PropsIfHasProps<
? {
// Neither props nor schema specified
inputProps?: z.input<Schema> & Props;
- }
+ }
: {
// Only props specified
inputProps: Props;
- }
+ }
: {} extends Props
- ? {
- // Only schema specified
- inputProps: z.input<Schema>;
- }
- : {
- // Props and schema specified
- inputProps: z.input<Schema> & Props;
- };
+ ? {
+ // Only schema specified
+ inputProps: z.input<Schema>;
+ }
+ : {
+ // Props and schema specified
+ inputProps: z.input<Schema> & Props;
+ };
diff --git a/packages/renderer/src/browser/Connection.ts b/packages/renderer/src/browser/Connection.ts
index 04189edd6d..24ba559e41 100644
--- a/packages/renderer/src/browser/Connection.ts
+++ b/packages/renderer/src/browser/Connection.ts
@@ -229,9 +229,7 @@ export class CDPSession extends EventEmitter {
if (!this.#connection) {
return Promise.reject(
new Error(
- `Protocol error (${method}): Session closed. Most likely the ${
- this.#targetType
- } has been closed.`,
+ `Protocol error (${method}): Session closed. Most likely the ${this.#targetType} has been closed.`,
),
);
}
diff --git a/packages/renderer/src/browser/FrameManager.ts b/packages/renderer/src/browser/FrameManager.ts
index b8f515b86e..eb3dbe8b8c 100644
--- a/packages/renderer/src/browser/FrameManager.ts
+++ b/packages/renderer/src/browser/FrameManager.ts
@@ -140,7 +140,7 @@ export class FrameManager extends EventEmitter {
autoAttach: true,
waitForDebuggerOnStart: false,
flatten: true,
- }),
+ }),
]);
const {
diff --git a/packages/renderer/src/call-ffmpeg.ts b/packages/renderer/src/call-ffmpeg.ts
index 190846f1ab..69ffb05cb7 100644
--- a/packages/renderer/src/call-ffmpeg.ts
+++ b/packages/renderer/src/call-ffmpeg.ts
@@ -21,14 +21,14 @@ export const dynamicLibraryPathOptions = (
...(process.platform === 'darwin'
? {
DYLD_LIBRARY_PATH: lib,
- }
+ }
: process.platform === 'win32'
- ? {
- PATH: `${lib};${process.env.PATH}`,
- }
- : {
- LD_LIBRARY_PATH: lib,
- }),
+ ? {
+ PATH: `${lib};${process.env.PATH}`,
+ }
+ : {
+ LD_LIBRARY_PATH: lib,
+ }),
},
};
};
diff --git a/packages/renderer/src/client.ts b/packages/renderer/src/client.ts
index 03bc0bbe49..e30afc916c 100644
--- a/packages/renderer/src/client.ts
+++ b/packages/renderer/src/client.ts
@@ -3,7 +3,7 @@ import {
supportedAudioCodecs,
validAudioCodecs,
} from './audio-codec';
-import { DEFAULT_TIMEOUT } from './browser/TimeoutSettings';
+import {DEFAULT_TIMEOUT} from './browser/TimeoutSettings';
import {validCodecs} from './codec';
import {
codecSupportsCrf,
@@ -15,12 +15,12 @@ import {
defaultCodecsForFileExtension,
getFileExtensionFromCodec,
} from './get-extension-from-codec';
-import { validStillImageFormats, validVideoImageFormats } from './image-format';
+import {validStillImageFormats, validVideoImageFormats} from './image-format';
import {isAudioCodec} from './is-audio-codec';
-import { logLevels } from './log-level';
+import {logLevels} from './log-level';
import {allOptions} from './options';
import {validColorSpaces} from './options/color-space';
-import { validOpenGlRenderers } from './options/gl';
+import {validOpenGlRenderers} from './options/gl';
import {optionsMap} from './options/options-map';
import {
DEFAULT_PIXEL_FORMAT,
@@ -59,5 +59,5 @@ export const BrowserSafeApis = {
optionsMap,
codecSupportsCrf,
codecSupportsVideoBitrate,
- logLevels
+ logLevels,
};
diff --git a/packages/renderer/src/combine-videos.ts b/packages/renderer/src/combine-videos.ts
index 9cde31560a..10befe3e20 100644
--- a/packages/renderer/src/combine-videos.ts
+++ b/packages/renderer/src/combine-videos.ts
@@ -66,8 +66,8 @@ export const combineVideos = async (options: Options) => {
numberOfGifLoops === null
? null
: typeof numberOfGifLoops === 'number'
- ? String(numberOfGifLoops)
- : '-1',
+ ? String(numberOfGifLoops)
+ : '-1',
isAudioCodec(codec) ? null : '-c:v',
isAudioCodec(codec) ? null : codec === 'gif' ? 'gif' : 'copy',
resolvedAudioCodec ? '-c:a' : null,
diff --git a/packages/renderer/src/compositor/get-executable-path.ts b/packages/renderer/src/compositor/get-executable-path.ts
index 3143c15999..a08bb46c27 100644
--- a/packages/renderer/src/compositor/get-executable-path.ts
+++ b/packages/renderer/src/compositor/get-executable-path.ts
@@ -37,10 +37,10 @@ export const getExecutablePath = (
type === 'compositor'
? 'binaryPath'
: type === 'ffmpeg'
- ? 'ffmpegPath'
- : type === 'ffprobe'
- ? 'ffprobePath'
- : 'ffmpegCwd';
+ ? 'ffmpegPath'
+ : type === 'ffprobe'
+ ? 'ffprobePath'
+ : 'ffmpegCwd';
switch (process.platform) {
case 'win32':
diff --git a/packages/renderer/src/ffmpeg-args.ts b/packages/renderer/src/ffmpeg-args.ts
index 29eb52dd85..a474a79a61 100644
--- a/packages/renderer/src/ffmpeg-args.ts
+++ b/packages/renderer/src/ffmpeg-args.ts
@@ -86,7 +86,7 @@ export const generateFfmpegArgs = ({
['-color_trc:v', 'bt709'],
['-color_range', 'tv'],
hasPreencoded ? [] : ['-vf', 'zscale=m=709:min=709:r=limited'],
- ]
+ ]
: [];
return [
diff --git a/packages/renderer/src/get-local-browser-executable.ts b/packages/renderer/src/get-local-browser-executable.ts
index 738612b906..6bcfa20cda 100644
--- a/packages/renderer/src/get-local-browser-executable.ts
+++ b/packages/renderer/src/get-local-browser-executable.ts
@@ -25,7 +25,7 @@ const getSearchPathsForProduct = () => {
: null,
process.platform === 'win32'
? os.homedir() +
- '\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe'
+ '\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe'
: null,
process.platform === 'win32'
? 'C:\\Program Files\\Google\\Chrome SxS\\Application\\chrome.exe'
@@ -35,7 +35,7 @@ const getSearchPathsForProduct = () => {
: null,
process.platform === 'win32'
? os.homedir() +
- '\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe'
+ '\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe'
: null,
].filter(Boolean) as string[];
};
diff --git a/packages/renderer/src/render-media.ts b/packages/renderer/src/render-media.ts
index fdc5d090bb..5cb3974c64 100644
--- a/packages/renderer/src/render-media.ts
+++ b/packages/renderer/src/render-media.ts
@@ -390,7 +390,7 @@ const internalRenderMediaRaw = ({
? path.join(
workingDir,
'pre-encode.' + getFileExtensionFromCodec(codec, audioCodec),
- )
+ )
: null;
if (onCtrlCExit && workingDir) {
@@ -599,7 +599,7 @@ const internalRenderMediaRaw = ({
setFrameToStitch(
Math.min(realFrameRange[1] + 1, frame + everyNthFrame),
);
- }
+ }
: null,
webpackBundleOrServeUrl: serveUrl,
onBrowserLog,
diff --git a/packages/renderer/src/screenshot-task.ts b/packages/renderer/src/screenshot-task.ts
index 7578cf707f..f52898b50d 100644
--- a/packages/renderer/src/screenshot-task.ts
+++ b/packages/renderer/src/screenshot-task.ts
@@ -66,14 +66,14 @@ export const screenshotTask = async ({
height: clipRegion.height,
scale: 1,
width: clipRegion.width,
- }
+ }
: {
x: 0,
y: 0,
height,
scale: 1,
width,
- },
+ },
captureBeyondViewport: true,
optimizeForSpeed: true,
});
diff --git a/packages/renderer/src/serve-handler/index.ts b/packages/renderer/src/serve-handler/index.ts
index 9943a060cf..b7361abe90 100644
--- a/packages/renderer/src/serve-handler/index.ts
+++ b/packages/renderer/src/serve-handler/index.ts
@@ -260,9 +260,8 @@ export const serveHandler = async (
const headers = getHeaders(absolutePath, stats);
if (streamOpts !== null) {
- headers[
- 'Content-Range'
- ] = `bytes ${streamOpts.start}-${streamOpts.end}/${stats.size}`;
+ headers['Content-Range'] =
+ `bytes ${streamOpts.start}-${streamOpts.end}/${stats.size}`;
headers['Content-Length'] = String(streamOpts.end - streamOpts.start + 1);
}
diff --git a/packages/renderer/src/stitch-frames-to-video.ts b/packages/renderer/src/stitch-frames-to-video.ts
index bdb84b5702..7f4a4a293f 100644
--- a/packages/renderer/src/stitch-frames-to-video.ts
+++ b/packages/renderer/src/stitch-frames-to-video.ts
@@ -288,7 +288,7 @@ const innerStitchFramesToVideo = async (
: path.join(
assetsInfo.downloadMap.stitchFrames,
`out.${getFileExtensionFromCodec(codec, resolvedAudioCodec)}`,
- );
+ );
Log.verbose(
{
@@ -362,7 +362,7 @@ const innerStitchFramesToVideo = async (
downloadMap: assetsInfo.downloadMap,
remotionRoot,
indent,
- })
+ })
: null;
if (mediaSupport.audio && !mediaSupport.video) {
@@ -429,7 +429,7 @@ const innerStitchFramesToVideo = async (
codec === 'gif'
? ['-filter_complex', 'split[v],palettegen,[v]paletteuse']
: null,
- ]),
+ ]),
audio ? ['-i', audio] : null,
numberOfGifLoops === null
? null
diff --git a/packages/renderer/src/take-frame-and-compose.ts b/packages/renderer/src/take-frame-and-compose.ts
index 6b420088a6..582176f678 100644
--- a/packages/renderer/src/take-frame-and-compose.ts
+++ b/packages/renderer/src/take-frame-and-compose.ts
@@ -81,7 +81,7 @@ export const takeFrameAndCompose = async ({
`${frame}-final.${imageFormat}`,
),
clipRegion: clipRegion as ClipRegion,
- };
+ };
if (clipRegion !== 'hide') {
const shouldMakeBuffer = wantsBuffer && !needsComposing;
@@ -135,7 +135,7 @@ export const takeFrameAndCompose = async ({
x: needsComposing.clipRegion.x * scale,
y: needsComposing.clipRegion.y * scale,
},
- },
+ },
].filter(truthy),
output: needsComposing.finalOutFile,
downloadMap,
diff --git a/packages/renderer/src/test/dont-skip-assets.test.ts b/packages/renderer/src/test/dont-skip-assets.test.ts
index 4f451ce491..0916a0ed80 100644
--- a/packages/renderer/src/test/dont-skip-assets.test.ts
+++ b/packages/renderer/src/test/dont-skip-assets.test.ts
@@ -54,7 +54,7 @@ const mock: TRenderAsset[][] = new Array(2934)
mediaFrame: 0,
allowAmplificationDuringRender: false,
toneFrequency: null,
- }
+ }
: null,
{
type: 'audio' as const,
diff --git a/packages/rive/src/RemotionRiveCanvas.tsx b/packages/rive/src/RemotionRiveCanvas.tsx
index 7704208f0a..0aa0edc152 100644
--- a/packages/rive/src/RemotionRiveCanvas.tsx
+++ b/packages/rive/src/RemotionRiveCanvas.tsx
@@ -86,14 +86,14 @@ export const RemotionRiveCanvas: React.FC<RiveProps> = ({
typeof artboardName === 'string'
? file.artboardByName(artboardName)
: typeof artboardName === 'number'
- ? file.artboardByIndex(artboardName)
- : file.defaultArtboard();
+ ? file.artboardByIndex(artboardName)
+ : file.defaultArtboard();
const animation = new riveCanvasInstance.LinearAnimationInstance(
typeof animationIndex === 'number'
? artboard.animationByIndex(animationIndex)
: typeof animationIndex === 'string'
- ? artboard.animationByName(animationIndex)
- : artboard.animationByIndex(0),
+ ? artboard.animationByName(animationIndex)
+ : artboard.animationByIndex(0),
artboard,
);
setRive({
diff --git a/packages/shapes/src/components/render-svg.tsx b/packages/shapes/src/components/render-svg.tsx
index 79c36ebe6f..9af7943162 100644
--- a/packages/shapes/src/components/render-svg.tsx
+++ b/packages/shapes/src/components/render-svg.tsx
@@ -115,7 +115,7 @@ export const RenderSvg = ({
}
return null;
- })
+ })
: null}
</svg>
);
diff --git a/packages/shapes/src/utils/join-points.ts b/packages/shapes/src/utils/join-points.ts
index 68c83f71f8..8e24570f0a 100644
--- a/packages/shapes/src/utils/join-points.ts
+++ b/packages/shapes/src/utils/join-points.ts
@@ -120,7 +120,7 @@ export const joinPoints = (
dy: prevVectorLength[1] + nextVectorMinusRadius[1],
largeArcFlag: false,
sweepFlag: true,
- }
+ }
: {
type: 'C',
x:
@@ -131,7 +131,7 @@ export const joinPoints = (
cp1y: y,
cp2x: x,
cp2y: y,
- },
+ },
];
}
diff --git a/packages/shapes/src/utils/make-pie.ts b/packages/shapes/src/utils/make-pie.ts
index 7298d434c9..7a60557bc0 100644
--- a/packages/shapes/src/utils/make-pie.ts
+++ b/packages/shapes/src/utils/make-pie.ts
@@ -107,7 +107,7 @@ export const makePie = ({
counterClockwise,
radius,
rotation,
- }),
+ }),
y:
actualProgress <= 0.5
? endAngleY
@@ -117,7 +117,7 @@ export const makePie = ({
counterClockwise,
radius,
rotation,
- }),
+ }),
},
actualProgress > 0.5
? {
@@ -128,19 +128,19 @@ export const makePie = ({
largeArcFlag: false,
sweepFlag: !counterClockwise,
...end,
- }
+ }
: null,
actualProgress > 0 && actualProgress < 1 && closePath
? {
type: 'L',
x: radius,
y: radius,
- }
+ }
: null,
closePath
? {
type: 'Z',
- }
+ }
: null,
].filter(Boolean) as Instruction[];
diff --git a/packages/transitions/src/TransitionSeries.tsx b/packages/transitions/src/TransitionSeries.tsx
index bcc80afa47..6c926a9e34 100644
--- a/packages/transitions/src/TransitionSeries.tsx
+++ b/packages/transitions/src/TransitionSeries.tsx
@@ -82,15 +82,15 @@ const TransitionSeriesChildren: FC<{children: React.ReactNode}> = ({
typeof hasPrev === 'string' || typeof hasPrev === 'undefined'
? null
: hasPrev.type === TransitionSeriesTransition
- ? (hasPrev as TransitionType<Record<string, unknown>>)
- : null;
+ ? (hasPrev as TransitionType<Record<string, unknown>>)
+ : null;
const next: TransitionType<Record<string, unknown>> | null =
typeof nextPrev === 'string' || typeof nextPrev === 'undefined'
? null
: nextPrev.type === TransitionSeriesTransition
- ? (nextPrev as TransitionType<Record<string, unknown>>)
- : null;
+ ? (nextPrev as TransitionType<Record<string, unknown>>)
+ : null;
const prevIsTransition =
typeof hasPrev === 'string' || typeof hasPrev === 'undefined'
@@ -186,14 +186,14 @@ const TransitionSeriesChildren: FC<{children: React.ReactNode}> = ({
durationInFrames +
next.props.timing.getDurationInFrames({fps}),
fps,
- })
+ })
: null;
const prevProgress = prev
? prev.props.timing.getProgress({
frame: frame - actualStartFrame,
fps,
- })
+ })
: null;
if (
diff --git a/packages/zod-types/src/z-color.ts b/packages/zod-types/src/z-color.ts
index 5f82812699..2e1958ffbf 100644
--- a/packages/zod-types/src/z-color.ts
+++ b/packages/zod-types/src/z-color.ts
@@ -29,6 +29,6 @@ export const zColor = () =>
return false;
}
},
- {message: 'Invalid color'}
+ {message: 'Invalid color'},
)
.describe(REMOTION_COLOR_BRAND);