🎥 Make videos programmatically with React
update ts eslint
Jonny Burgere4633f2c35d8
diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.jsonindex e68156288b..9307d312b6 100644--- a/packages/eslint-plugin/package.json+++ b/packages/eslint-plugin/package.json@@ -14,7 +14,7 @@"author": "Jonny Burger <[email protected]>","license": "ISC","devDependencies": {- "@typescript-eslint/experimental-utils": "^4.14.1",+ "@typescript-eslint/utils": "5.11.0","eslint": "^7.25.0","jest": "^27.2.4","ts-jest": "^27.0.5",diff --git a/packages/eslint-plugin/src/rules/deterministic-randomness.ts b/packages/eslint-plugin/src/rules/deterministic-randomness.tsindex 7a82dd0cd1..78cd1869c9 100644--- a/packages/eslint-plugin/src/rules/deterministic-randomness.ts+++ b/packages/eslint-plugin/src/rules/deterministic-randomness.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";const createRule = ESLintUtils.RuleCreator((name) => {return `https://github.com/remotion-dev/remotion`;@@ -21,7 +21,6 @@ export default createRule<Options, MessageIds>({type: "problem",docs: {description: DeterministicRandomness,- category: "Best Practices",recommended: "warn",},fixable: undefined,diff --git a/packages/eslint-plugin/src/rules/even-dimensions.ts b/packages/eslint-plugin/src/rules/even-dimensions.tsindex 26034b3230..da8d7b238e 100644--- a/packages/eslint-plugin/src/rules/even-dimensions.ts+++ b/packages/eslint-plugin/src/rules/even-dimensions.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";const createRule = ESLintUtils.RuleCreator((name) => {return `https://github.com/remotion-dev/remotion`;@@ -17,7 +17,6 @@ export default createRule<Options, MessageIds>({type: "problem",docs: {description: EvenDimensions,- category: "Possible Errors",recommended: "warn",},fixable: undefined,diff --git a/packages/eslint-plugin/src/rules/no-duration-frames-infinity.ts b/packages/eslint-plugin/src/rules/no-duration-frames-infinity.tsindex 74ea085c6f..e79fb3af6d 100644--- a/packages/eslint-plugin/src/rules/no-duration-frames-infinity.ts+++ b/packages/eslint-plugin/src/rules/no-duration-frames-infinity.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";const createRule = ESLintUtils.RuleCreator((name) => {return `https://github.com/remotion-dev/remotion`;@@ -17,7 +17,6 @@ export default createRule<Options, MessageIds>({type: "problem",docs: {description: DurationInFrames,- category: "Best Practices",recommended: "warn",},fixable: "code",diff --git a/packages/eslint-plugin/src/rules/no-mp4-import.ts b/packages/eslint-plugin/src/rules/no-mp4-import.tsindex ce5c5e05e0..aa58c02dcf 100644--- a/packages/eslint-plugin/src/rules/no-mp4-import.ts+++ b/packages/eslint-plugin/src/rules/no-mp4-import.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";const createRule = ESLintUtils.RuleCreator((name) => {return `https://github.com/remotion-dev/remotion`;@@ -11,13 +11,12 @@ type MessageIds = "NoMP4Import";const NoMP4Import ="Importing MP4 will work while you are previewing the video, but will not work while rendering since Puppeteer does not include the codecs necessary for MP4 videos. Convert the video to WebM first.";-export default createRule<Options, MessageIds>({+const rule = createRule<Options, MessageIds>({name: "no-mp4-import",meta: {type: "problem",docs: {description: NoMP4Import,- category: "Best Practices",recommended: "warn",},fixable: undefined,@@ -66,3 +65,5 @@ export default createRule<Options, MessageIds>({};},});++export default rule;diff --git a/packages/eslint-plugin/src/rules/no-string-assets.ts b/packages/eslint-plugin/src/rules/no-string-assets.tsindex e89f175df9..ed0283d450 100644--- a/packages/eslint-plugin/src/rules/no-string-assets.ts+++ b/packages/eslint-plugin/src/rules/no-string-assets.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";const createRule = ESLintUtils.RuleCreator((name) => {return `https://github.com/remotion-dev/remotion`;@@ -19,7 +19,6 @@ export default createRule<Options, MessageIds>({type: "problem",docs: {description: NoStringAssets,- category: "Best Practices",recommended: "warn",},fixable: undefined,diff --git a/packages/eslint-plugin/src/rules/volume-callback.ts b/packages/eslint-plugin/src/rules/volume-callback.tsindex 40b2c4527d..171f1d7d9f 100644--- a/packages/eslint-plugin/src/rules/volume-callback.ts+++ b/packages/eslint-plugin/src/rules/volume-callback.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";const createRule = ESLintUtils.RuleCreator((name) => {return `https://github.com/remotion-dev/remotion`;@@ -17,7 +17,6 @@ export default createRule<Options, MessageIds>({type: "problem",docs: {description: VolumeCallback,- category: "Possible Errors",recommended: "warn",},fixable: undefined,diff --git a/packages/eslint-plugin/src/rules/warn-native-media-tag.ts b/packages/eslint-plugin/src/rules/warn-native-media-tag.tsindex 5742c7a90f..03df559e03 100644--- a/packages/eslint-plugin/src/rules/warn-native-media-tag.ts+++ b/packages/eslint-plugin/src/rules/warn-native-media-tag.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";const createRule = ESLintUtils.RuleCreator((name) => {return `https://github.com/remotion-dev/remotion`;@@ -27,7 +27,6 @@ export default createRule<Options, MessageIds>({type: "problem",docs: {description: NoNativeImgTag,- category: "Best Practices",recommended: "warn",},fixable: undefined,diff --git a/packages/eslint-plugin/src/tests/even-dimensions.test.ts b/packages/eslint-plugin/src/tests/even-dimensions.test.tsindex 825baf2615..2ad4b01620 100644--- a/packages/eslint-plugin/src/tests/even-dimensions.test.ts+++ b/packages/eslint-plugin/src/tests/even-dimensions.test.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";import rule from "../rules/even-dimensions";const ruleTester = new ESLintUtils.RuleTester({diff --git a/packages/eslint-plugin/src/tests/no-duration-frames-infinity.test.ts b/packages/eslint-plugin/src/tests/no-duration-frames-infinity.test.tsindex 25573ee401..b9513a6c0b 100644--- a/packages/eslint-plugin/src/tests/no-duration-frames-infinity.test.ts+++ b/packages/eslint-plugin/src/tests/no-duration-frames-infinity.test.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";import rule from "../rules//no-duration-frames-infinity";const ruleTester = new ESLintUtils.RuleTester({diff --git a/packages/eslint-plugin/src/tests/no-math-random.test.ts b/packages/eslint-plugin/src/tests/no-math-random.test.tsindex 6c6654d37d..31a0ff1aa7 100644--- a/packages/eslint-plugin/src/tests/no-math-random.test.ts+++ b/packages/eslint-plugin/src/tests/no-math-random.test.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";import rule from "../rules/deterministic-randomness";const ruleTester = new ESLintUtils.RuleTester({parser: "@typescript-eslint/parser",diff --git a/packages/eslint-plugin/src/tests/no-mp4-import.test.ts b/packages/eslint-plugin/src/tests/no-mp4-import.test.tsindex 2bf5903e67..b5632886c3 100644--- a/packages/eslint-plugin/src/tests/no-mp4-import.test.ts+++ b/packages/eslint-plugin/src/tests/no-mp4-import.test.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";import rule from "../rules/no-mp4-import";const ruleTester = new ESLintUtils.RuleTester({parser: "@typescript-eslint/parser",diff --git a/packages/eslint-plugin/src/tests/no-string-assets.test.ts b/packages/eslint-plugin/src/tests/no-string-assets.test.tsindex 7ec3b519db..9d83a59a4f 100644--- a/packages/eslint-plugin/src/tests/no-string-assets.test.ts+++ b/packages/eslint-plugin/src/tests/no-string-assets.test.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";import rule from "../rules/no-string-assets";const ruleTester = new ESLintUtils.RuleTester({diff --git a/packages/eslint-plugin/src/tests/volume-callback.test.ts b/packages/eslint-plugin/src/tests/volume-callback.test.tsindex 32c3ca0470..23c8ab3599 100644--- a/packages/eslint-plugin/src/tests/volume-callback.test.ts+++ b/packages/eslint-plugin/src/tests/volume-callback.test.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";import rule from "../rules/volume-callback";const ruleTester = new ESLintUtils.RuleTester({diff --git a/packages/eslint-plugin/src/tests/warn-native-image-tag.test.ts b/packages/eslint-plugin/src/tests/warn-native-image-tag.test.tsindex 3d8bd50086..2b845ed673 100644--- a/packages/eslint-plugin/src/tests/warn-native-image-tag.test.ts+++ b/packages/eslint-plugin/src/tests/warn-native-image-tag.test.ts@@ -1,4 +1,4 @@-import { ESLintUtils } from "@typescript-eslint/experimental-utils";+import { ESLintUtils } from "@typescript-eslint/utils";import rule from "../rules/warn-native-media-tag";const ruleTester = new ESLintUtils.RuleTester({parser: "@typescript-eslint/parser",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ff5990e2e3..e04500b283 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -455,13 +455,13 @@ importers:packages/eslint-plugin:specifiers:- '@typescript-eslint/experimental-utils': ^4.14.1+ '@typescript-eslint/utils': 5.11.0eslint: ^7.25.0jest: ^27.2.4ts-jest: ^27.0.5typescript: ^4.4.2devDependencies:- '@typescript-eslint/experimental-utils': [email protected][email protected]+ '@typescript-eslint/utils': [email protected][email protected]eslint: 7.32.0jest: 27.2.4ts-jest: [email protected][email protected]@@ -7384,24 +7384,6 @@ packages:- supports-color- typescript- /@typescript-eslint/experimental-utils/[email protected][email protected]:- resolution: {integrity: sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q==}- engines: {node: ^10.12.0 || >=12.0.0}- peerDependencies:- eslint: '*'- dependencies:- '@types/json-schema': 7.0.9- '@typescript-eslint/scope-manager': 4.33.0- '@typescript-eslint/types': 4.33.0- '@typescript-eslint/typescript-estree': [email protected]- eslint: 7.32.0- eslint-scope: 5.1.1- eslint-utils: [email protected]- transitivePeerDependencies:- - supports-color- - typescript- dev: true-/@typescript-eslint/parser/[email protected]:resolution: {integrity: sha512-z/bGdBJJZJN76nvAY9DkJANYgK3nlRstRRi74WHm3jjgf2I8AglrSY+6l7ogxOmn55YJ6oKZCLLy+6PW70z15Q==}engines: {node: ^10.12.0 || >=12.0.0}@@ -7455,6 +7437,14 @@ packages:'@typescript-eslint/types': 4.33.0'@typescript-eslint/visitor-keys': 4.33.0+ /@typescript-eslint/scope-manager/5.11.0:+ resolution: {integrity: sha512-z+K4LlahDFVMww20t/0zcA7gq/NgOawaLuxgqGRVKS0PiZlCTIUtX0EJbC0BK1JtR4CelmkPK67zuCgpdlF4EA==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ dependencies:+ '@typescript-eslint/types': 5.11.0+ '@typescript-eslint/visitor-keys': 5.11.0+ dev: true+/@typescript-eslint/types/3.10.1:resolution: {integrity: sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==}engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1}@@ -7469,6 +7459,11 @@ packages:resolution: {integrity: sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ==}engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1}+ /@typescript-eslint/types/5.11.0:+ resolution: {integrity: sha512-cxgBFGSRCoBEhvSVLkKw39+kMzUKHlJGVwwMbPcTZX3qEhuXhrjwaZXWMxVfxDgyMm+b5Q5b29Llo2yow8Y7xQ==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ dev: true+/@typescript-eslint/typescript-estree/[email protected]:resolution: {integrity: sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==}engines: {node: ^10.12.0 || >=12.0.0}@@ -7532,17 +7527,17 @@ packages:transitivePeerDependencies:- supports-color- /@typescript-eslint/typescript-estree/[email protected]:- resolution: {integrity: sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA==}- engines: {node: ^10.12.0 || >=12.0.0}+ /@typescript-eslint/typescript-estree/[email protected]:+ resolution: {integrity: sha512-yVH9hKIv3ZN3lw8m/Jy5I4oXO4ZBMqijcXCdA4mY8ull6TPTAoQnKKrcZ0HDXg7Bsl0Unwwx7jcXMuNZc0m4lg==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:typescript: '*'peerDependenciesMeta:typescript:optional: truedependencies:- '@typescript-eslint/types': 4.33.0- '@typescript-eslint/visitor-keys': 4.33.0+ '@typescript-eslint/types': 5.11.0+ '@typescript-eslint/visitor-keys': 5.11.0debug: 4.3.2globby: 11.0.4is-glob: 4.0.3@@ -7553,6 +7548,24 @@ packages:- supports-colordev: true+ /@typescript-eslint/utils/[email protected][email protected]:+ resolution: {integrity: sha512-g2I480tFE1iYRDyMhxPAtLQ9HAn0jjBtipgTCZmd9I9s11OV8CTsG+YfFciuNDcHqm4csbAgC2aVZCHzLxMSUw==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ eslint: ^6.0.0 || ^7.0.0 || ^8.0.0+ dependencies:+ '@types/json-schema': 7.0.9+ '@typescript-eslint/scope-manager': 5.11.0+ '@typescript-eslint/types': 5.11.0+ '@typescript-eslint/typescript-estree': [email protected]+ eslint: 7.32.0+ eslint-scope: 5.1.1+ eslint-utils: [email protected]+ transitivePeerDependencies:+ - supports-color+ - typescript+ dev: true+/@typescript-eslint/visitor-keys/3.10.1:resolution: {integrity: sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==}engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1}@@ -7575,6 +7588,14 @@ packages:'@typescript-eslint/types': 4.33.0eslint-visitor-keys: 2.1.0+ /@typescript-eslint/visitor-keys/5.11.0:+ resolution: {integrity: sha512-E8w/vJReMGuloGxJDkpPlGwhxocxOpSVgSvjiLO5IxZPmxZF30weOeJYyPSEACwM+X4NziYS9q+WkN/2DHYQwA==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ dependencies:+ '@typescript-eslint/types': 5.11.0+ eslint-visitor-keys: 3.2.0+ dev: true+/@typescript/twoslash/2.2.0:resolution: {integrity: sha512-Lkgrs9L/OIn1JZcIv2k4uy/CsQ+9dmurN64YzSWIHleTE3PkZlV2lZdq9xM7TnLh5zFy3tP8KuPtUxbIGV9sIw==}dependencies:@@ -11665,6 +11686,11 @@ packages:resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==}engines: {node: '>=10'}+ /eslint-visitor-keys/3.2.0:+ resolution: {integrity: sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ dev: true+/eslint-webpack-plugin/[email protected][email protected]:resolution: {integrity: sha512-7rYh0m76KyKSDE+B+2PUQrlNS4HJ51t3WKpkJg6vo2jFMbEPTG99cBV0Dm7LXSHucN4WGCG65wQcRiTFrj7iWw==}engines: {node: '>= 10.13.0'}