Skip to content

🎥 Make videos programmatically with React

upgrade fig to eslint9

Jonny Burger6c1a66f44556
diff --git a/packages/cli-autocomplete/.eslintrc b/packages/cli-autocomplete/.eslintrc
deleted file mode 100644
index f9e8a1b5da..0000000000
--- a/packages/cli-autocomplete/.eslintrc
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": [
- "plugin:@typescript-eslint/recommended",
- "plugin:@withfig/fig-linter/recommended",
- "plugin:compat/recommended",
- ],
- "rules": {
- // ReferenceError: Error while loading rule '@typescript-eslint/ban-ts-comment': structuredClone is not defined
- // In Remotion 5.0 we can enable
- "@typescript-eslint/ban-ts-comment": "off",
- },
-}
diff --git a/packages/cli-autocomplete/.prettierrc.js b/packages/cli-autocomplete/.prettierrc.js
index 7c969e5bf7..c2154fd187 100644
--- a/packages/cli-autocomplete/.prettierrc.js
+++ b/packages/cli-autocomplete/.prettierrc.js
@@ -1,5 +1,6 @@
+// eslint-disable-next-line no-undef
module.exports = {
- printWidth: 80,
- trailingComma: "es5",
- useTabs: true,
+ printWidth: 80,
+ trailingComma: "es5",
+ useTabs: true,
};
diff --git a/packages/cli-autocomplete/eslint.config.mjs b/packages/cli-autocomplete/eslint.config.mjs
new file mode 100644
index 0000000000..123ea81db8
--- /dev/null
+++ b/packages/cli-autocomplete/eslint.config.mjs
@@ -0,0 +1,16 @@
+import { dirname } from "path";
+import { fileURLToPath } from "url";
+import { FlatCompat } from "@eslint/eslintrc";
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = dirname(__filename);
+
+const compat = new FlatCompat({
+ baseDirectory: __dirname,
+});
+import { config } from "@remotion/eslint-config-flat";
+
+export default [
+ ...config,
+ ...compat.extends("plugin:@withfig/fig-linter/recommended"),
+];
diff --git a/packages/cli-autocomplete/package.json b/packages/cli-autocomplete/package.json
index 7b9eb17c22..8fde5d5656 100644
--- a/packages/cli-autocomplete/package.json
+++ b/packages/cli-autocomplete/package.json
@@ -9,7 +9,7 @@
"@fig/eslint-config-autocomplete": "1.2.1",
"@withfig/autocomplete-types": "^1.20.0",
"@remotion/renderer": "workspace:*",
- "eslint": "8.57.1"
+ "eslint": "9.19.0"
},
"scripts": {
"formatting": "prettier src --check",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 04bfb59035..324b6387ee 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -292,7 +292,7 @@ importers:
devDependencies:
'@fig/eslint-config-autocomplete':
specifier: 1.2.1
'@remotion/renderer':
specifier: workspace:*
version: link:../renderer
@@ -300,8 +300,8 @@ importers:
specifier: ^1.20.0
version: 1.30.0
eslint:
- specifier: 8.57.1
- version: 8.57.1
+ specifier: 9.19.0
+ version: 9.19.0
packages/cloudrun:
dependencies:
@@ -9977,16 +9977,6 @@ packages:
eslint-visitor-keys: 3.4.3
dev: false
- /@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.57.1
- eslint-visitor-keys: 3.4.3
- dev: true
-
resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -10047,6 +10037,7 @@ packages:
strip-json-comments: 3.1.1
transitivePeerDependencies:
- supports-color
+ dev: false
resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==}
@@ -10085,11 +10076,6 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: false
- /@eslint/[email protected]:
- resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: true
-
resolution: {integrity: sha512-rbq9/g38qjfqFLOVPvwjIvFFdNziEC5S65jmjPw5r6A//QH+W91akh9irMwjDN8zKUTak6W9EsAv4m/7Wnw0UQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -10105,16 +10091,16 @@ packages:
'@eslint/core': 0.10.0
levn: 0.4.1
resolution: {integrity: sha512-ZPmN0QAfsGbLwx3An20iZxSVZrEEPXoCf5V3mTVdDAo90IhD0O9991153n98cCggD7LemPOWei0GRvRso2MKgg==}
peerDependencies:
eslint: '>=8'
dependencies:
- '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/[email protected])([email protected])([email protected])
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/[email protected])([email protected])([email protected])
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
'@withfig/eslint-plugin-fig-linter': 1.4.1
- eslint: 8.57.1
- eslint-plugin-compat: 4.2.0([email protected])
+ eslint: 9.19.0
+ eslint-plugin-compat: 4.2.0([email protected])
transitivePeerDependencies:
- supports-color
- typescript
@@ -10825,18 +10811,6 @@ packages:
- supports-color
dev: false
- /@humanwhocodes/[email protected]:
- resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==}
- engines: {node: '>=10.10.0'}
- deprecated: Use @eslint/config-array instead
- dependencies:
- '@humanwhocodes/object-schema': 2.0.3
- debug: 4.3.7
- minimatch: 3.1.2
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/@humanwhocodes/[email protected]:
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
engines: {node: '>=12.22'}
@@ -10844,6 +10818,7 @@ packages:
/@humanwhocodes/[email protected]:
resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}
deprecated: Use @eslint/object-schema instead
+ dev: false
/@humanwhocodes/[email protected]:
resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==}
@@ -15585,34 +15560,6 @@ packages:
dev: false
optional: true
- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):
- resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- '@typescript-eslint/parser': ^5.0.0
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@eslint-community/regexpp': 4.12.1
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
- '@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/type-utils': 5.62.0([email protected])([email protected])
- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
- debug: 4.3.7
- eslint: 8.57.1
- graphemer: 1.4.0
- ignore: 5.3.2
- natural-compare-lite: 1.4.0
- semver: 7.5.3
- tsutils: 3.21.0([email protected])
- typescript: 5.5.4
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -15721,26 +15668,6 @@ packages:
- supports-color
dev: true
- resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- debug: 4.3.7
- eslint: 8.57.1
- typescript: 5.5.4
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -15860,26 +15787,6 @@ packages:
'@typescript-eslint/visitor-keys': 8.21.0
dev: true
- resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: '*'
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])
- debug: 4.3.7
- eslint: 8.57.1
- tsutils: 3.21.0([email protected])
- typescript: 5.5.4
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -16120,26 +16027,6 @@ packages:
- typescript
dev: true
- resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- dependencies:
- '@eslint-community/eslint-utils': 4.4.0([email protected])
- '@types/json-schema': 7.0.15
- '@types/semver': 7.5.3
- '@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- eslint: 8.57.1
- eslint-scope: 5.1.1
- semver: 7.5.3
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
-
resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -16305,6 +16192,7 @@ packages:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
+ dev: false
/@use-gesture/[email protected]:
resolution: {integrity: sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==}
@@ -19060,6 +18948,7 @@ packages:
engines: {node: '>=6.0.0'}
dependencies:
esutils: 2.0.3
+ dev: false
resolution: {integrity: sha512-NMt+m9zFMPZe0JcY9gN224Qvk6qLIdqex29clBvc/y75ZBX9YA9wNK3frsYvu2DI1xcCIwxwnX+TlsJ2DSOADg==}
@@ -20068,7 +19957,7 @@ packages:
jsx-ast-utils: 2.4.1
dev: false
resolution: {integrity: sha512-RDKSYD0maWy5r7zb5cWQS+uSPc26mgOzdORJ8hxILmWM7S/Ncwky7BcAtXVY5iRbKjBdHsWU8Yg7hfoZjtkv7w==}
engines: {node: '>=14.x'}
peerDependencies:
@@ -20078,7 +19967,7 @@ packages:
ast-metadata-inferer: 0.8.0
browserslist: 4.24.2
caniuse-lite: 1.0.30001690
- eslint: 8.57.1
+ eslint: 9.19.0
find-up: 5.0.0
lodash.memoize: 4.1.2
semver: 7.6.3
@@ -20320,6 +20209,7 @@ packages:
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
+ dev: false
resolution: {integrity: sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==}
@@ -20420,54 +20310,6 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
- hasBin: true
- dependencies:
- '@eslint-community/eslint-utils': 4.4.0([email protected])
- '@eslint-community/regexpp': 4.12.1
- '@eslint/eslintrc': 2.1.4
- '@eslint/js': 8.57.1
- '@humanwhocodes/config-array': 0.13.0
- '@humanwhocodes/module-importer': 1.0.1
- '@nodelib/fs.walk': 1.2.8
- '@ungap/structured-clone': 1.2.0
- ajv: 6.12.6
- chalk: 4.1.2
- cross-spawn: 7.0.3
- debug: 4.3.7
- 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.3.2
- 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
- text-table: 0.2.0
- transitivePeerDependencies:
- - supports-color
- dev: true
-
resolution: {integrity: sha512-ug92j0LepKlbbEv6hD911THhoRHmbdXt2gX+VDABAW/Ir7D3nqKdv5Pf5vtlyY6HQMTEP2skXY43ueqTCWssEA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -20530,6 +20372,7 @@ packages:
acorn: 8.14.0
acorn-jsx: 5.3.2([email protected])
eslint-visitor-keys: 3.4.3
+ dev: false
resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
@@ -20892,6 +20735,7 @@ packages:
engines: {node: ^10.12.0 || >=12.0.0}
dependencies:
flat-cache: 3.0.4
+ dev: false
resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
@@ -21032,6 +20876,7 @@ packages:
dependencies:
flatted: 3.3.1
rimraf: 3.0.2
+ dev: false
resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
@@ -21427,6 +21272,7 @@ packages:
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
+ dev: false
resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}
@@ -21472,6 +21318,7 @@ packages:
engines: {node: '>=8'}
dependencies:
type-fest: 0.20.2
+ dev: false
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
@@ -22566,6 +22413,7 @@ packages:
resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}
engines: {node: '>=8'}
+ dev: false
resolution: {integrity: sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==}
@@ -28318,6 +28166,7 @@ packages:
hasBin: true
dependencies:
glob: 7.2.0
+ dev: false
resolution: {integrity: sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==}
@@ -29704,6 +29553,7 @@ packages:
resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
+ dev: false
resolution: {integrity: sha512-49WtAWS+tcsy93dRt6P0P3AMD2m5PvXRhuEA0kaXos5ZLlujtYmpmFsB+QvWUSxE1ZsstmYXfQ7L40+EcQgpAQ==}
@@ -30179,6 +30029,7 @@ packages:
resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}
engines: {node: '>=10'}
+ dev: false
resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}