🎥 Make videos programmatically with React
fix lint
Jonny Burger30b98e3903aa
diff --git a/packages/video-parser/package.json b/packages/video-parser/package.jsonindex 06fcae3345..6da1e3fa14 100644--- a/packages/video-parser/package.json+++ b/packages/video-parser/package.json@@ -33,17 +33,16 @@"license": "SEE LICENSE IN LICENSE.md","dependencies": {},"devDependencies": {- "@jonny/eslint-config": "3.0.276",+ "@jonny/eslint-config": "3.0.281","@types/bun": "^1.0.4","@types/node": "18.14.6","@remotion/renderer": "workspace:",- "eslint": "8.42.0",+ "eslint": "8.56.0","eslint-plugin-10x": "1.5.2","eslint-plugin-react": "7.32.2","eslint-plugin-react-hooks": "4.4.0",- "prettier": "3.1.1",- "prettier-plugin-organize-imports": "3.2.4",- "vitest": "0.31.1"+ "prettier": "3.2.5",+ "prettier-plugin-organize-imports": "3.2.4"},"keywords": ["remotion",diff --git a/packages/video-parser/src/get-duration.ts b/packages/video-parser/src/get-duration.tsindex 9cd671d6fb..d4a2507104 100644--- a/packages/video-parser/src/get-duration.ts+++ b/packages/video-parser/src/get-duration.ts@@ -1,11 +1,12 @@-import {Box} from './parse-video';+import type {Box} from './parse-video';export const getDuration = (boxes: Box[]): number | null => {const moovBox = boxes.find((b) => b.boxType === 'moov');if (!moovBox) {return null;}- const extraData = moovBox.extraData;++ const {extraData} = moovBox;if (!extraData) {return null;}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 18373f9725..f331491d98 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2201,8 +2201,8 @@ importers:packages/video-parser:devDependencies:'@jonny/eslint-config':- specifier: 3.0.276- version: 3.0.276([email protected])([email protected])+ specifier: 3.0.281+ version: 3.0.281([email protected])([email protected])'@remotion/renderer':specifier: 'workspace:'version: link:../renderer@@ -2213,26 +2213,23 @@ importers:specifier: 18.14.6version: 18.14.6eslint:- specifier: 8.42.0- version: 8.42.0+ specifier: 8.56.0+ version: 8.56.0eslint-plugin-10x:specifier: 1.5.2- version: 1.5.2([email protected])+ version: 1.5.2([email protected])eslint-plugin-react:specifier: 7.32.2- version: 7.32.2([email protected])+ version: 7.32.2([email protected])eslint-plugin-react-hooks:specifier: 4.4.0- version: 4.4.0([email protected])+ version: 4.4.0([email protected])prettier:- specifier: 3.1.1- version: 3.1.1+ specifier: 3.2.5+ version: 3.2.5prettier-plugin-organize-imports:specifier: 3.2.4- version: 3.2.4([email protected])([email protected])- vitest:- specifier: 0.31.1- version: 0.31.1([email protected])([email protected])+ version: 3.2.4([email protected])([email protected])packages/zod-types:dependencies:@@ -7980,16 +7977,6 @@ packages:requiresBuild: trueoptional: true- /@eslint-community/[email protected]([email protected]):- resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || >=8.0.0- dependencies:- eslint: 8.42.0- eslint-visitor-keys: 3.4.3- dev: true-/@eslint-community/[email protected]([email protected]):resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -8024,11 +8011,6 @@ packages:transitivePeerDependencies:- supports-color- /@eslint/[email protected]:- resolution: {integrity: sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dev: true-/@eslint/[email protected]:resolution: {integrity: sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -8254,20 +8236,6 @@ packages:chalk: 4.1.2dev: true- resolution: {integrity: sha512-L8ldtIJUXl0dpsTcdfHSjmovZAnojOeFfR8sR4CRtUK1Yz5WetHLJayv2skJS0Kl+YeZnoozLLvIZup/uHFLlg==}- dependencies:- '@typescript-eslint/eslint-plugin': 6.7.4(@typescript-eslint/[email protected])([email protected])([email protected])- '@typescript-eslint/parser': 6.7.4([email protected])([email protected])- eslint-plugin-10x: 1.5.2([email protected])- eslint-plugin-react: 7.31.11([email protected])- eslint-plugin-react-hooks: 4.6.0([email protected])- transitivePeerDependencies:- - eslint- - supports-color- - typescript- dev: true-resolution: {integrity: sha512-+fA/Xi7xy6IC8j2K1MqhUWbchCQVGimIHsem5wknoFcgqmxY8E4Cu4fsdOQBgbOgV/aWNOOVOJ2nGkCQE5cdzQ==}dependencies:@@ -10245,35 +10213,6 @@ packages:- supports-colordev: false- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-DAbgDXwtX+pDkAHwiGhqP3zWUGpW49B7eqmgpPtg+BKJXwdct79ut9+ifqOFPJGClGKSHXn2PTBatCnldJRUoA==}- engines: {node: ^16.0.0 || >=18.0.0}- peerDependencies:- '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha- eslint: ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@eslint-community/regexpp': 4.10.0- '@typescript-eslint/parser': 6.7.4([email protected])([email protected])- '@typescript-eslint/scope-manager': 6.7.4- '@typescript-eslint/type-utils': 6.7.4([email protected])([email protected])- '@typescript-eslint/utils': 6.7.4([email protected])([email protected])- '@typescript-eslint/visitor-keys': 6.7.4- debug: 4.3.4([email protected])- eslint: 8.42.0- graphemer: 1.4.0- ignore: 5.2.4- natural-compare: 1.4.0- semver: 7.5.4- ts-api-utils: 1.0.3([email protected])- typescript: 5.3.3- transitivePeerDependencies:- - supports-color- dev: true-/@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-HpqNTH8Du34nLxbKgVMGljZMG0rJd2O9ecvr2QLYp+7512ty1j42KnsFwspPXg1Vh8an9YImf6CokUBltisZFQ==}engines: {node: ^18.18.0 || >=20.0.0}@@ -10343,27 +10282,6 @@ packages:- supports-colordev: false- resolution: {integrity: sha512-I5zVZFY+cw4IMZUeNCU7Sh2PO5O57F7Lr0uyhgCJmhN/BuTlnc55KxPonR4+EM3GBdfiCyGZye6DgMjtubQkmA==}- engines: {node: ^16.0.0 || >=18.0.0}- peerDependencies:- eslint: ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/scope-manager': 6.7.4- '@typescript-eslint/types': 6.7.4- '@typescript-eslint/typescript-estree': 6.7.4([email protected])- '@typescript-eslint/visitor-keys': 6.7.4- debug: 4.3.4([email protected])- eslint: 8.42.0- typescript: 5.3.3- transitivePeerDependencies:- - supports-color- dev: true-resolution: {integrity: sha512-cj+XGhNujfD2/wzR1tabNsidnYRaFfEkcULdcIyVBYcXjBvBKOes+mpMBP7hMpOyk+gBcfXsrg4NBGAStQyxjQ==}engines: {node: ^18.18.0 || >=20.0.0}@@ -10408,14 +10326,6 @@ packages:'@typescript-eslint/visitor-keys': 6.21.0dev: false- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-SdGqSLUPTXAXi7c3Ob7peAGVnmMoGzZ361VswK2Mqf8UOYcODiYvs8rs5ILqEdfvX1lE7wEZbLyELCW+Yrql1A==}- engines: {node: ^16.0.0 || >=18.0.0}- dependencies:- '@typescript-eslint/types': 6.7.4- '@typescript-eslint/visitor-keys': 6.7.4- dev: true-/@typescript-eslint/[email protected]:resolution: {integrity: sha512-Z1r7uJY0MDeUlql9XJ6kRVgk/sP11sr3HKXn268HZyqL7i4cEfrdFuSSY/0tUqT37l5zT0tJOsuDP16kio85iA==}engines: {node: ^18.18.0 || >=20.0.0}@@ -10463,26 +10373,6 @@ packages:- supports-colordev: false- resolution: {integrity: sha512-n+g3zi1QzpcAdHFP9KQF+rEFxMb2KxtnJGID3teA/nxKHOVi3ylKovaqEzGBbVY2pBttU6z85gp0D00ufLzViQ==}- engines: {node: ^16.0.0 || >=18.0.0}- peerDependencies:- eslint: ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/typescript-estree': 6.7.4([email protected])- '@typescript-eslint/utils': 6.7.4([email protected])([email protected])- debug: 4.3.4([email protected])- eslint: 8.42.0- ts-api-utils: 1.0.3([email protected])- typescript: 5.3.3- transitivePeerDependencies:- - supports-color- dev: true-resolution: {integrity: sha512-A021Rj33+G8mx2Dqh0nMO9GyjjIBK3MqgVgZ2qlKf6CJy51wY/lkkFqq3TqqnH34XyAHUkq27IjlUkWlQRpLHw==}engines: {node: ^18.18.0 || >=20.0.0}@@ -10517,11 +10407,6 @@ packages:engines: {node: ^16.0.0 || >=18.0.0}dev: false- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-o9XWK2FLW6eSS/0r/tgjAGsYasLAnOWg7hvZ/dGYSSNjCh+49k5ocPN8OmG5aZcSJ8pclSOyVKP2x03Sj+RrCA==}- engines: {node: ^16.0.0 || >=18.0.0}- dev: true-/@typescript-eslint/[email protected]:resolution: {integrity: sha512-tv5B4IHeAdhR7uS4+bf8Ov3k793VEVHd45viRRkehIUZxm0WF82VPiLgHzA/Xl4TGPg1ZD49vfxBKFPecD5/mg==}engines: {node: ^18.18.0 || >=20.0.0}@@ -10590,27 +10475,6 @@ packages:- supports-colordev: false- /@typescript-eslint/[email protected]([email protected]):- resolution: {integrity: sha512-ty8b5qHKatlNYd9vmpHooQz3Vki3gG+3PchmtsA4TgrZBKWHNjWfkQid7K7xQogBqqc7/BhGazxMD5vr6Ha+iQ==}- engines: {node: ^16.0.0 || >=18.0.0}- peerDependencies:- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/types': 6.7.4- '@typescript-eslint/visitor-keys': 6.7.4- debug: 4.3.4([email protected])- globby: 11.1.0- is-glob: 4.0.3- semver: 7.5.4- ts-api-utils: 1.0.3([email protected])- typescript: 5.3.3- transitivePeerDependencies:- - supports-color- dev: true-/@typescript-eslint/[email protected]([email protected]):resolution: {integrity: sha512-YklQQfe0Rv2PZEueLTUffiQGKQneiIEKKnfIqPIOxgM9lKSZFCjT5Ad4VqRKj/U4+kQE3fa8YQpskViL7WjdPQ==}engines: {node: ^18.18.0 || >=20.0.0}@@ -10689,25 +10553,6 @@ packages:- typescriptdev: false- resolution: {integrity: sha512-PRQAs+HUn85Qdk+khAxsVV+oULy3VkbH3hQ8hxLRJXWBEd7iI+GbQxH5SEUSH7kbEoTp6oT1bOwyga24ELALTA==}- engines: {node: ^16.0.0 || >=18.0.0}- peerDependencies:- eslint: ^7.0.0 || ^8.0.0- dependencies:- '@eslint-community/eslint-utils': 4.4.0([email protected])- '@types/json-schema': 7.0.13- '@types/semver': 7.5.3- '@typescript-eslint/scope-manager': 6.7.4- '@typescript-eslint/types': 6.7.4- '@typescript-eslint/typescript-estree': 6.7.4([email protected])- eslint: 8.42.0- semver: 7.5.4- transitivePeerDependencies:- - supports-color- - typescript- dev: true-resolution: {integrity: sha512-3vZl9u0R+/FLQcpy2EHyRGNqAS/ofJ3Ji8aebilfJe+fobK8+LbIFmrHciLVDxjDoONmufDcnVSF38KwMEOjzw==}engines: {node: ^18.18.0 || >=20.0.0}@@ -10750,14 +10595,6 @@ packages:eslint-visitor-keys: 3.4.3dev: false- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-pOW37DUhlTZbvph50x5zZCkFn3xzwkGtNoJHzIM3svpiSkJzwOYr/kVBaXmf+RAQiUDs1AHEZVNPg6UJCJpwRA==}- engines: {node: ^16.0.0 || >=18.0.0}- dependencies:- '@typescript-eslint/types': 6.7.4- eslint-visitor-keys: 3.4.3- dev: true-/@typescript-eslint/[email protected]:resolution: {integrity: sha512-mcuHM/QircmA6O7fy6nn2w/3ditQkj+SgtOc8DW3uQ10Yfj42amm2i+6F2K4YAOPNNTmE6iM1ynM6lrSwdendA==}engines: {node: ^18.18.0 || >=20.0.0}@@ -13950,15 +13787,6 @@ packages:optionalDependencies:source-map: 0.6.1- resolution: {integrity: sha512-SKVKlSJXJSU34Gw1m0Hp+PBO5az4zPIRU3+nC3Ya6x+nQ3Bq3kIfQUBH6dN811CawO6sacpc538IJAqTDSMSWQ==}- peerDependencies:- eslint: '>=7.8.0'- dependencies:- eslint: 8.42.0- jsx-ast-utils: 2.4.1- dev: true-resolution: {integrity: sha512-SKVKlSJXJSU34Gw1m0Hp+PBO5az4zPIRU3+nC3Ya6x+nQ3Bq3kIfQUBH6dN811CawO6sacpc538IJAqTDSMSWQ==}peerDependencies:@@ -13983,15 +13811,6 @@ packages:semver: 7.5.4dev: true- resolution: {integrity: sha512-U3RVIfdzJaeKDQKEJbz5p3NW8/L80PCATJAfuojwbaEL+gBjfGdhUcGde+WGUW46Q5sr/NgxevsIiDtNXrvZaQ==}- engines: {node: '>=10'}- peerDependencies:- eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0- dependencies:- eslint: 8.42.0- dev: true-resolution: {integrity: sha512-U3RVIfdzJaeKDQKEJbz5p3NW8/L80PCATJAfuojwbaEL+gBjfGdhUcGde+WGUW46Q5sr/NgxevsIiDtNXrvZaQ==}engines: {node: '>=10'}@@ -14001,15 +13820,6 @@ packages:eslint: 8.56.0dev: true- resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==}- engines: {node: '>=10'}- peerDependencies:- eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0- dependencies:- eslint: 8.42.0- dev: true-resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==}engines: {node: '>=10'}@@ -14018,54 +13828,6 @@ packages:dependencies:eslint: 8.56.0- resolution: {integrity: sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==}- engines: {node: '>=4'}- peerDependencies:- eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8- dependencies:- array-includes: 3.1.8- array.prototype.flatmap: 1.3.2- array.prototype.tosorted: 1.1.3- doctrine: 2.1.0- eslint: 8.42.0- estraverse: 5.3.0- jsx-ast-utils: 3.2.1- minimatch: 3.1.2- object.entries: 1.1.8- object.fromentries: 2.0.8- object.hasown: 1.1.4- object.values: 1.2.0- prop-types: 15.8.1- resolve: 2.0.0-next.5- semver: 6.3.1- string.prototype.matchall: 4.0.11- dev: true-- resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==}- engines: {node: '>=4'}- peerDependencies:- eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8- dependencies:- array-includes: 3.1.8- array.prototype.flatmap: 1.3.2- array.prototype.tosorted: 1.1.3- doctrine: 2.1.0- eslint: 8.42.0- estraverse: 5.3.0- jsx-ast-utils: 3.2.1- minimatch: 3.1.2- object.entries: 1.1.8- object.fromentries: 2.0.8- object.hasown: 1.1.4- object.values: 1.2.0- prop-types: 15.8.1- resolve: 2.0.0-next.5- semver: 6.3.1- string.prototype.matchall: 4.0.11- dev: true-resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==}engines: {node: '>=4'}@@ -14157,54 +13919,6 @@ packages:resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- resolution: {integrity: sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- hasBin: true- dependencies:- '@eslint-community/eslint-utils': 4.4.0([email protected])- '@eslint-community/regexpp': 4.10.0- '@eslint/eslintrc': 2.1.4- '@eslint/js': 8.42.0- '@humanwhocodes/config-array': 0.11.14- '@humanwhocodes/module-importer': 1.0.1- '@nodelib/fs.walk': 1.2.8- ajv: 6.12.6- chalk: 4.1.2- cross-spawn: 7.0.3- debug: 4.3.4([email protected])- doctrine: 3.0.0- escape-string-regexp: 4.0.0- eslint-scope: 7.2.2- eslint-visitor-keys: 3.4.3- espree: 9.6.1- esquery: 1.5.0- esutils: 2.0.3- fast-deep-equal: 3.1.3- file-entry-cache: 6.0.1- find-up: 5.0.0- glob-parent: 6.0.2- globals: 13.20.0- graphemer: 1.4.0- ignore: 5.2.4- import-fresh: 3.3.0- imurmurhash: 0.1.4- is-glob: 4.0.3- is-path-inside: 3.0.3- js-yaml: 4.1.0- json-stable-stringify-without-jsonify: 1.0.1- levn: 0.4.1- lodash.merge: 4.6.2- minimatch: 3.1.2- natural-compare: 1.4.0- optionator: 0.9.3- strip-ansi: 6.0.1- strip-json-comments: 3.1.1- text-table: 0.2.0- transitivePeerDependencies:- - supports-color- dev: true-resolution: {integrity: sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -19626,23 +19340,6 @@ packages:synckit: 0.8.5dev: false- resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==}- peerDependencies:- '@volar/vue-language-plugin-pug': ^1.0.4- '@volar/vue-typescript': ^1.0.4- prettier: '>=2.0'- typescript: '>=2.9'- peerDependenciesMeta:- '@volar/vue-language-plugin-pug':- optional: true- '@volar/vue-typescript':- optional: true- dependencies:- prettier: 3.1.1- typescript: 5.3.3- dev: true-resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==}peerDependencies:@@ -19666,12 +19363,6 @@ packages:hasBin: truedev: false- resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==}- engines: {node: '>=14'}- hasBin: true- dev: true-resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}engines: {node: '>=14'}