Skip to content

🎥 Make videos programmatically with React

disable next rules

Jonny Burgerbd679808f8c6
diff --git a/packages/template-next-app-tailwind/eslint.config.mjs b/packages/template-next-app-tailwind/eslint.config.mjs
index beeedf26a8..b5cceaf18e 100644
--- a/packages/template-next-app-tailwind/eslint.config.mjs
+++ b/packages/template-next-app-tailwind/eslint.config.mjs
@@ -17,6 +17,12 @@ const eslintConfig = [
nextPlugin,
{
...remotion.flatPlugin,
+ rules: {
+ ...remotion.flatPlugin.rules,
+ ...Object.entries(nextPlugin.rules).reduce((acc, [key]) => {
+ return { ...acc, [key]: "off" };
+ }, {}),
+ },
files: ["src/remotion/**"],
},
];
diff --git a/packages/template-next-app/eslint.config.mjs b/packages/template-next-app/eslint.config.mjs
index beeedf26a8..b5cceaf18e 100644
--- a/packages/template-next-app/eslint.config.mjs
+++ b/packages/template-next-app/eslint.config.mjs
@@ -17,6 +17,12 @@ const eslintConfig = [
nextPlugin,
{
...remotion.flatPlugin,
+ rules: {
+ ...remotion.flatPlugin.rules,
+ ...Object.entries(nextPlugin.rules).reduce((acc, [key]) => {
+ return { ...acc, [key]: "off" };
+ }, {}),
+ },
files: ["src/remotion/**"],
},
];
diff --git a/packages/template-next-pages/eslint.config.mjs b/packages/template-next-pages/eslint.config.mjs
index beeedf26a8..b5cceaf18e 100644
--- a/packages/template-next-pages/eslint.config.mjs
+++ b/packages/template-next-pages/eslint.config.mjs
@@ -17,6 +17,12 @@ const eslintConfig = [
nextPlugin,
{
...remotion.flatPlugin,
+ rules: {
+ ...remotion.flatPlugin.rules,
+ ...Object.entries(nextPlugin.rules).reduce((acc, [key]) => {
+ return { ...acc, [key]: "off" };
+ }, {}),
+ },
files: ["src/remotion/**"],
},
];