Skip to content

🎥 Make videos programmatically with React

updates

Jonny Burgera5902a4c6b88
diff --git a/packages/streaming/.eslintrc b/packages/streaming/.eslintrc
deleted file mode 100644
index 2f4fe588d1..0000000000
--- a/packages/streaming/.eslintrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "@remotion/internal",
-}
diff --git a/packages/streaming/eslint.config.mjs b/packages/streaming/eslint.config.mjs
new file mode 100644
index 0000000000..04fd4fac11
--- /dev/null
+++ b/packages/streaming/eslint.config.mjs
@@ -0,0 +1,7 @@
+import {remotionFlatConfig} from '@remotion/eslint-config-internal';
+
+const config = remotionFlatConfig({react: false});
+
+export default {
+ ...config,
+};
diff --git a/packages/streaming/src/make-streamer.ts b/packages/streaming/src/make-streamer.ts
index e7d698a223..f4ee894a7b 100644
--- a/packages/streaming/src/make-streamer.ts
+++ b/packages/streaming/src/make-streamer.ts
@@ -21,7 +21,6 @@ export const makeStreamer = (
const findSeparatorIndex = () => {
let searchIndex = 0;
- // eslint-disable-next-line no-constant-condition
while (true) {
const separatorIndex = outputBuffer.indexOf(separator[0], searchIndex); // Start checking for the first byte of the separator
if (separatorIndex === -1) {
@@ -53,7 +52,6 @@ export const makeStreamer = (
let lengthString = '';
let statusString = '';
- // eslint-disable-next-line no-constant-condition
while (true) {
if (separatorIndex > outputBuffer.length - 1) {
return;
@@ -69,7 +67,6 @@ export const makeStreamer = (
nonceString += String.fromCharCode(nextDigit);
}
- // eslint-disable-next-line no-constant-condition
while (true) {
if (separatorIndex > outputBuffer.length - 1) {
return;
@@ -85,7 +82,6 @@ export const makeStreamer = (
lengthString += String.fromCharCode(nextDigit);
}
- // eslint-disable-next-line no-constant-condition
while (true) {
if (separatorIndex > outputBuffer.length - 1) {
return;