Formatting in the Remotion repo
The Remotion codebase uses Oxfmt and ESLint for formatting and requires all code to be formatted correctly before it is merged.
Oxfmt
In VS Code, you can install the Oxc extension.
The editor should automatically pick up our .vscode/settings.json file and format your code when you save a file.
To manually format a whole package, run bunx oxfmt src --write on a package. Example:
cd packages/renderer
bunx oxfmt src --writeESLint
ESLint will warn about code style issues and errors. You can install the ESLint VS Code extension to get warnings in the editor as you write code. Extensions for other editors are available on the ESLint website.
You can also run pnpm run lint in any package to check if there are any errors. Example:
cd packages/renderer
pnpm run lintTesting everything
You can run
pnpm run stylecheckin the root to test locally if the whole repo is well-formatted and will pass the continuous integration checks.