Skip to content

🎥 Make videos programmatically with React

run prettier over MD files

Jonny Burgere0b1c199883f
diff --git a/packages/docs/docs/absolute-fill.md b/packages/docs/docs/absolute-fill.md
index 4830acfed4..394537b26b 100644
--- a/packages/docs/docs/absolute-fill.md
+++ b/packages/docs/docs/absolute-fill.md
@@ -23,15 +23,15 @@ A helper component - it is an absolutely positioned `<div>` with the following s
You can add a [React ref](https://reactjs.org/docs/refs-and-the-dom.html) to an `<AbsoluteFill>` from version `v3.2.13` on. If you use TypeScript, you need to type it with `HTMLDivElement`:
```tsx twoslash
-import {useRef} from 'react';
-import {AbsoluteFill} from 'remotion';
+import { useRef } from "react";
+import { AbsoluteFill } from "remotion";
-const content = <div>Hello, World</div>
+const content = <div>Hello, World</div>;
// ---cut---
const MyComp = () => {
const ref = useRef<HTMLDivElement>(null);
- return <AbsoluteFill ref={ref}>{content}</AbsoluteFill>
-}
+ return <AbsoluteFill ref={ref}>{content}</AbsoluteFill>;
+};
```
## See also
diff --git a/packages/docs/docs/sequence.md b/packages/docs/docs/sequence.md
index 032d2130c4..3a2c2eb827 100644
--- a/packages/docs/docs/sequence.md
+++ b/packages/docs/docs/sequence.md
@@ -166,15 +166,19 @@ See the [`<Series />`](/docs/series) helper component, which helps you calculate
You can add a [React ref](https://reactjs.org/docs/refs-and-the-dom.html) to an `<Sequence>` from version `v3.2.13` on. If you use TypeScript, you need to type it with `HTMLDivElement`:
```tsx twoslash
-import {useRef} from 'react';
-import {Sequence} from 'remotion';
+import { useRef } from "react";
+import { Sequence } from "remotion";
-const content = <div>Hello, World</div>
+const content = <div>Hello, World</div>;
// ---cut---
const MyComp = () => {
- const ref = useRef<HTMLDivElement>(null)
- return <Sequence from={10} ref={ref}>{content}</Sequence>
-}
+ const ref = useRef<HTMLDivElement>(null);
+ return (
+ <Sequence from={10} ref={ref}>
+ {content}
+ </Sequence>
+ );
+};
```
## See also
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 599d8ca88d..01901150cd 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -60,7 +60,9 @@
"@types/react": "18.0.1",
"eslint": "8.13.0",
"typescript": "^4.7.0",
- "url-loader": "^4.1.1"
+ "url-loader": "^4.1.1",
+ "prettier-plugin-organize-imports": "^2.3.4"
+
},
"browserslist": {
"production": [
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e5de2c4c4a..1ad2ed3921 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -278,6 +278,7 @@ importers:
hls.js: ^0.14.17
lottie-web: ^5.9.6
polished: 4.1.2
+ prettier-plugin-organize-imports: ^2.3.4
react: 18.0.0
react-dom: 18.0.0
react-player: ^2.9.0
@@ -330,6 +331,7 @@ importers:
'@types/node': 17.0.17
'@types/react': 18.0.1
eslint: 8.13.0
+ prettier-plugin-organize-imports: 2.3.4_lbsuufegg2dnc4wh6qgf26kgdy
typescript: 4.7.2
url-loader: 4.1.1_csgzzuwaerdr4d7s3u52mzcn7m