Skip to content

🎥 Make videos programmatically with React

awesome

Jonny Burgerd6a3db2086c3
diff --git a/packages/eslint-plugin/src/index.ts b/packages/eslint-plugin/src/index.ts
index abf79bcc14..ee536cda11 100644
--- a/packages/eslint-plugin/src/index.ts
+++ b/packages/eslint-plugin/src/index.ts
@@ -44,6 +44,7 @@ export = {
'@remotion/no-background-image': 'error',
'@remotion/v4-config-import': 'error',
},
+ plugins: ['@remotion'],
},
},
} as const;
diff --git a/packages/template-next-app/eslint.config.mjs b/packages/template-next-app/eslint.config.mjs
index e7a7824689..31743f31a0 100644
--- a/packages/template-next-app/eslint.config.mjs
+++ b/packages/template-next-app/eslint.config.mjs
@@ -10,7 +10,17 @@ const compat = new FlatCompat({
});
const eslintConfig = [
- ...compat.extends("plugin:@next/next/recommended", "next/typescript"),
+ ...compat.extends("next/typescript"),
+ ...compat.extends("plugin:@next/next/recommended").map((config) => {
+ return {
+ ...config,
+ ignores: ["src/remotion/**"],
+ };
+ }),
+ {
+ ...compat.extends("plugin:@remotion/eslint-plugin/recommended")[0],
+ files: ["src/remotion/**"],
+ },
];
export default eslintConfig;
diff --git a/packages/template-next-app/package.json b/packages/template-next-app/package.json
index 1d8fb70894..32994d4ab1 100644
--- a/packages/template-next-app/package.json
+++ b/packages/template-next-app/package.json
@@ -26,7 +26,6 @@
"zod": "3.22.3"
},
"devDependencies": {
- "@remotion/eslint-config": "workspace:*",
"@remotion/eslint-plugin": "workspace:*",
"@types/node": "20.12.14",
"@types/react": "19.0.0",