Skip to content

🎥 Make videos programmatically with React

Remove Prettier organize imports plugin

Jonny Burgercf2e32fb727f
diff --git a/.prettierrc.js b/.prettierrc.js
index 9144fd7f4c..227655a2f1 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -17,7 +17,4 @@ module.exports = {
},
},
],
- plugins: [
- require.resolve('@remotion/typescript-tools/prettier-organize-imports'),
- ],
};
diff --git a/bun.lock b/bun.lock
index ef13429d1c..6058306301 100644
--- a/bun.lock
+++ b/bun.lock
@@ -10,7 +10,6 @@
"typescript": "catalog:",
},
"devDependencies": {
- "@remotion/typescript-tools": "workspace:*",
"@types/babel__standalone": "7.1.9",
"@types/bun": "catalog:",
"@types/deno": "2.0.0",
@@ -2440,7 +2439,6 @@
"autoprefixer": "10.4.16",
"postcss": "8.5.23",
"prettier": "3.8.1",
- "prettier-plugin-organize-imports": "3.2.3",
"tailwindcss": "3.3.5",
"typescript": "5.9.3",
"vite": "6.4.3",
@@ -2777,8 +2775,6 @@
"@typescript-eslint/eslint-plugin": "8.71.2",
"@typescript-eslint/parser": "8.71.2",
"eslint": "catalog:",
- "prettier": "catalog:",
- "prettier-plugin-organize-imports": "3.2.4",
"twoslash": "0.3.6",
"typescript": "5.9.3",
},
@@ -8059,8 +8055,6 @@
"prettier": ["[email protected]", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg=="],
- "prettier-plugin-organize-imports": ["[email protected]", "", { "peerDependencies": { "prettier": "3.6.0", "typescript": "5.8.2" } }, "sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog=="],
-
"pretty-cache-header": ["[email protected]", "", { "dependencies": { "timestring": "^6.0.0" } }, "sha512-xtXazslu25CdnGnUkByU1RoOjK55TqwatJkjjJLg5ZAdz2Lngko/mmaUgeET36P2GMlNwh3fdM7FWBO717pNcw=="],
"pretty-error": ["[email protected]", "", { "dependencies": { "lodash": "4.17.21", "renderkid": "3.0.0" } }, "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw=="],
@@ -12871,8 +12865,6 @@
"template-recorder/lucide-react": ["[email protected]", "", { "peerDependencies": { "react": "19.0.0" } }, "sha512-aybBJzLHcw1CIn3rUcRkztB37dsJATtpffLNX+0/w+ws2p21nYIlOwX/B5fqxq8F/BjqVemnJX8chKwRidvROg=="],
- "template-recorder/prettier-plugin-organize-imports": ["[email protected]", "", { "peerDependencies": { "prettier": "3.6.0", "typescript": "5.8.2" } }, "sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg=="],
-
"template-recorder/react": ["[email protected]", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],
"template-recorder/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
@@ -18849,8 +18841,6 @@
"template-recorder/lucide-react/react": ["[email protected]", "", {}, "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ=="],
- "template-recorder/prettier-plugin-organize-imports/typescript": ["[email protected]", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.1.0-beta", "@typescript/typescript-android-arm64": "7.1.0-beta", "@typescript/typescript-darwin-arm64": "7.1.0-beta", "@typescript/typescript-darwin-x64": "7.1.0-beta", "@typescript/typescript-freebsd-arm64": "7.1.0-beta", "@typescript/typescript-freebsd-x64": "7.1.0-beta", "@typescript/typescript-linux-arm": "7.1.0-beta", "@typescript/typescript-linux-arm64": "7.1.0-beta", "@typescript/typescript-linux-loong64": "7.1.0-beta", "@typescript/typescript-linux-mips64el": "7.1.0-beta", "@typescript/typescript-linux-ppc64": "7.1.0-beta", "@typescript/typescript-linux-riscv64": "7.1.0-beta", "@typescript/typescript-linux-s390x": "7.1.0-beta", "@typescript/typescript-linux-x64": "7.1.0-beta", "@typescript/typescript-netbsd-arm64": "7.1.0-beta", "@typescript/typescript-netbsd-x64": "7.1.0-beta", "@typescript/typescript-openbsd-arm64": "7.1.0-beta", "@typescript/typescript-openbsd-x64": "7.1.0-beta", "@typescript/typescript-sunos-x64": "7.1.0-beta", "@typescript/typescript-win32-arm64": "7.1.0-beta", "@typescript/typescript-win32-x64": "7.1.0-beta" }, "bin": { "tsc": "bin/tsc" } }, "sha512-cjWjZAJDsmZzsNC5GwHNlW0YPM65jZa5oR0KyQcYX3KSVIfTvtBq//vewISyatKk4OLi5grZjHhIVE9fdrw1UQ=="],
-
"template-recorder/tailwindcss/chokidar": ["[email protected]", "", { "dependencies": { "anymatch": "3.1.2", "braces": "3.0.3", "glob-parent": "5.1.2", "is-binary-path": "2.1.0", "is-glob": "4.0.3", "normalize-path": "3.0.0", "readdirp": "3.6.0" }, "optionalDependencies": { "fsevents": "2.3.3" } }, "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw=="],
"template-recorder/tailwindcss/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "3.3.11", "picocolors": "1.1.1", "source-map-js": "1.2.1" } }, "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ=="],
diff --git a/package.json b/package.json
index ad84938402..0c7e15c886 100644
--- a/package.json
+++ b/package.json
@@ -72,7 +72,6 @@
"@types/react-dom": "catalog:",
"oxfmt": "0.35.0",
"prettier": "catalog:",
- "@remotion/typescript-tools": "workspace:*",
"react-scan": "0.5.7",
"vite": "6.4.4"
},
diff --git a/packages/browser-bundler/src/test/runtime.test.tsx b/packages/browser-bundler/src/test/runtime.test.tsx
index bdb2bb1072..d431c7dbd6 100644
--- a/packages/browser-bundler/src/test/runtime.test.tsx
+++ b/packages/browser-bundler/src/test/runtime.test.tsx
@@ -1,4 +1,3 @@
-// organize-imports-ignore
// React DOM and Testing Library inspect the DOM when they are imported.
import './runtime-dom.js';
import {afterEach, expect, test} from 'bun:test';
diff --git a/packages/cloudrun/.prettierrc.js b/packages/cloudrun/.prettierrc.js
index 623a277cd2..c532da57c8 100644
--- a/packages/cloudrun/.prettierrc.js
+++ b/packages/cloudrun/.prettierrc.js
@@ -18,7 +18,4 @@ module.exports = {
},
},
],
- plugins: [
- require.resolve('@remotion/typescript-tools/prettier-organize-imports'),
- ],
};
diff --git a/packages/docs/docs/cloudrun/light-client.mdx b/packages/docs/docs/cloudrun/light-client.mdx
index 1179fcaa3c..c5cd02347d 100644
--- a/packages/docs/docs/cloudrun/light-client.mdx
+++ b/packages/docs/docs/cloudrun/light-client.mdx
@@ -10,7 +10,6 @@ crumb: "Cloud Run"
The following methods and types can be imported from `@remotion/cloudrun/client`:
```tsx twoslash
-// organize-imports-ignore
// ---cut---
import {
deleteService,
diff --git a/packages/docs/docs/data-fetching.mdx b/packages/docs/docs/data-fetching.mdx
index 52e50a9c4e..a72adebd0b 100644
--- a/packages/docs/docs/data-fetching.mdx
+++ b/packages/docs/docs/data-fetching.mdx
@@ -164,7 +164,6 @@ export const MyComp: React.FC<Props> = ({ data }) => {
```tsx twoslash title="src/Root.tsx"
// @filename: src/MyComp.tsx
-// organize-imports-ignore
import React from "react";
import { CalculateMetadataFunction } from "remotion";
import { z } from "zod";
diff --git a/packages/docs/docs/lambda/light-client.mdx b/packages/docs/docs/lambda/light-client.mdx
index 137365ae03..8c3374c01c 100644
--- a/packages/docs/docs/lambda/light-client.mdx
+++ b/packages/docs/docs/lambda/light-client.mdx
@@ -10,7 +10,6 @@ The following methods and types can be imported from `@remotion/lambda/client`.
`@remotion/lambda/client` re-exports everything from the `@remotion/lambda-client` NPM package, which you can install if you only need these functions in your project, saving you some dependencies.
```tsx twoslash
-// organize-imports-ignore
// ---cut---
import {
renderMediaOnLambda,
diff --git a/packages/docs/docs/passing-props.mdx b/packages/docs/docs/passing-props.mdx
index e9d253453b..73ed900138 100644
--- a/packages/docs/docs/passing-props.mdx
+++ b/packages/docs/docs/passing-props.mdx
@@ -35,7 +35,6 @@ To define which props your video accepts, give your component the `React.FC` typ
When registering a component that takes props as a composition, you must define default props:
```tsx twoslash {14-17} title="src/Root.tsx"
-// organize-imports-ignore
// @filename: MyComponent.tsx
import React from 'react';
diff --git a/packages/docs/docs/schemas.mdx b/packages/docs/docs/schemas.mdx
index d595c2d4af..86cd92ce36 100644
--- a/packages/docs/docs/schemas.mdx
+++ b/packages/docs/docs/schemas.mdx
@@ -93,7 +93,6 @@ export const MyComponent: React.FC<z.infer<typeof myCompSchema>> = ({propOne, pr
};
// @filename: Root.tsx
-// organize-imports-ignore
// ---cut---
import React from 'react';
import {Composition} from 'remotion';
diff --git a/packages/docs/docs/visual-editing.mdx b/packages/docs/docs/visual-editing.mdx
index ef982ed417..42e5c89ffa 100644
--- a/packages/docs/docs/visual-editing.mdx
+++ b/packages/docs/docs/visual-editing.mdx
@@ -80,7 +80,6 @@ export const MyComponent: React.FC<Props> = ({propOne, propTwo}) => {
};
// @filename: Root.tsx
-// organize-imports-ignore
// ---cut---
import React from 'react';
import {Composition} from 'remotion';
diff --git a/packages/template-recorder/package.json b/packages/template-recorder/package.json
index 955ce301fe..3dfc46f4f8 100644
--- a/packages/template-recorder/package.json
+++ b/packages/template-recorder/package.json
@@ -65,7 +65,6 @@
"@types/web": "0.0.187",
"@types/webrtc": "0.0.44",
"@vitejs/plugin-react": "4.3.4",
- "prettier": "3.8.1",
- "prettier-plugin-organize-imports": "3.2.3"
+ "prettier": "3.8.1"
}
}
diff --git a/packages/typescript-tools/package.json b/packages/typescript-tools/package.json
index 4d133b8bf8..07359c4454 100644
--- a/packages/typescript-tools/package.json
+++ b/packages/typescript-tools/package.json
@@ -18,10 +18,6 @@
"types": "./eslint-parser.d.ts",
"default": "./eslint-parser.js"
},
- "./prettier-organize-imports": {
- "types": "./prettier-organize-imports.d.ts",
- "default": "./prettier-organize-imports.js"
- },
"./twoslash": {
"types": "./twoslash.d.ts",
"default": "./twoslash.mjs"
@@ -36,8 +32,6 @@
"@typescript-eslint/eslint-plugin": "8.71.2",
"@typescript-eslint/parser": "8.71.2",
"eslint": "catalog:",
- "prettier": "catalog:",
- "prettier-plugin-organize-imports": "3.2.4",
"twoslash": "0.3.6",
"typescript": "5.9.3"
}
diff --git a/packages/typescript-tools/prettier-organize-imports.d.ts b/packages/typescript-tools/prettier-organize-imports.d.ts
deleted file mode 100644
index 30fa624ce2..0000000000
--- a/packages/typescript-tools/prettier-organize-imports.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import type {Plugin} from 'prettier';
-
-declare const plugin: Plugin;
-export = plugin;
diff --git a/packages/typescript-tools/prettier-organize-imports.js b/packages/typescript-tools/prettier-organize-imports.js
deleted file mode 100644
index 764efeaa4e..0000000000
--- a/packages/typescript-tools/prettier-organize-imports.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('prettier-plugin-organize-imports');