Skip to content

🎥 Make videos programmatically with React

test previous plugins

Jonny Burger96f2a7c168c6
diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json
index 608b6765e5..07e6f028f7 100644
--- a/packages/eslint-config/package.json
+++ b/packages/eslint-config/package.json
@@ -19,9 +19,12 @@
"@remotion/eslint-plugin": "2.6.15",
"@typescript-eslint/eslint-plugin": "5.11.0",
"@typescript-eslint/parser": "5.11.0",
- "eslint-plugin-10x": "1.5.2",
- "eslint-plugin-react": "7.29.4",
- "eslint-plugin-react-hooks": "4.4.0"
+ "eslint-config-prettier": "8.3.0",
+ "eslint-config-xo": "0.35.0",
+ "eslint-config-xo-react": "0.24.0",
+ "eslint-plugin-10x": "1.5.0",
+ "eslint-plugin-react": "7.26.1",
+ "eslint-plugin-react-hooks": "4.3.0"
},
"devDependencies": {
"@types/node": "17.0.17",
diff --git a/packages/eslint-config/src/index.ts b/packages/eslint-config/src/index.ts
index db1bc403e4..a6e7d7d2c8 100644
--- a/packages/eslint-config/src/index.ts
+++ b/packages/eslint-config/src/index.ts
@@ -1,10 +1,14 @@
import { autoImports } from "./auto-import-rules";
import { allowESLintShareableConfig } from "./patch-eslint";
+import xo = require("eslint-config-xo/esnext");
+import xoReact = require("eslint-config-xo-react");
const baseExtends = ["eslint:recommended"];
const getRules = (typescript: boolean) => {
return {
+ ...xo.rules,
+ ...xoReact.rules,
// prettier
curly: 0,
"lines-around-comment": 0,
diff --git a/packages/eslint-config/src/woo.d.ts b/packages/eslint-config/src/woo.d.ts
new file mode 100644
index 0000000000..8233528ddc
--- /dev/null
+++ b/packages/eslint-config/src/woo.d.ts
@@ -0,0 +1,7 @@
+declare module "eslint-config-xo/esnext" {
+ export const rules: any;
+}
+declare module "eslint-config-xo-react" {
+ export const plugins: any;
+ export const rules: any;
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c279eda354..a793ed0d7f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -354,17 +354,23 @@ importers:
'@types/node': 17.0.17
'@typescript-eslint/eslint-plugin': 5.11.0
'@typescript-eslint/parser': 5.11.0
- eslint-plugin-10x: 1.5.2
- eslint-plugin-react: 7.29.4
- eslint-plugin-react-hooks: 4.4.0
+ eslint-config-prettier: 8.3.0
+ eslint-config-xo: 0.35.0
+ eslint-config-xo-react: 0.24.0
+ eslint-plugin-10x: 1.5.0
+ eslint-plugin-react: 7.26.1
+ eslint-plugin-react-hooks: 4.3.0
typescript: ^4.5.5
dependencies:
'@remotion/eslint-plugin': link:../eslint-plugin
'@typescript-eslint/eslint-plugin': 5.11.0_5448361d0c7d01128df3422f1139058a
'@typescript-eslint/parser': [email protected]
- eslint-plugin-10x: 1.5.2
- eslint-plugin-react: 7.29.4
- eslint-plugin-react-hooks: 4.4.0
+ eslint-config-prettier: 8.3.0
+ eslint-config-xo: 0.35.0
+ eslint-config-xo-react: 0.24.0_2c54d852e52d7b865ace652dae274235
+ eslint-plugin-10x: 1.5.0
+ eslint-plugin-react: 7.26.1
+ eslint-plugin-react-hooks: 4.3.0
devDependencies:
'@types/node': 17.0.17
typescript: 4.5.5
@@ -14505,6 +14511,13 @@ packages:
optionalDependencies:
source-map: 0.6.1
+ /eslint-config-prettier/8.3.0:
+ resolution: {integrity: sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==}
+ hasBin: true
+ peerDependencies:
+ eslint: '>=7.0.0'
+ dev: false
+
/eslint-config-prettier/[email protected]:
resolution: {integrity: sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==}
hasBin: true
@@ -14548,6 +14561,18 @@ packages:
eslint-plugin-testing-library: [email protected][email protected]
dev: false
+ /eslint-config-xo-react/0.24.0_2c54d852e52d7b865ace652dae274235:
+ resolution: {integrity: sha512-Hc6pHDJf8y71Uo1jwWJ85CaFGTPxHp26L+49H5jgALB1rTmmxMUA70sDv6qj3icPgSWbkiOvuHM6tis+ws3stQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ eslint: '>=7'
+ eslint-plugin-react: '>=7.22.0'
+ eslint-plugin-react-hooks: '>=4.2.0'
+ dependencies:
+ eslint-plugin-react: 7.26.1
+ eslint-plugin-react-hooks: 4.3.0
+ dev: false
+
/eslint-config-xo-react/0.25.0_3db5edbe424418fb7f5383c8a5845c49:
resolution: {integrity: sha512-YpABFxnoATAYtxsZQChZEbOkWqzCtcQDRdiUqHhLgG7hzbAEzPDmsRUWnTP8oTVLVFWrbgdf913b8kQJaR1cBA==}
engines: {node: '>=10'}
@@ -14573,6 +14598,15 @@ packages:
eslint-plugin-react-hooks: [email protected]
dev: true
+ /eslint-config-xo/0.35.0:
+ resolution: {integrity: sha512-+WyZTLWUJlvExFrBU/Ldw8AB/S0d3x+26JQdBWbcqig2ZaWh0zinYcHok+ET4IoPaEcRRf3FE9kjItNVjBwnAg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ eslint: '>=7.20.0'
+ dependencies:
+ confusing-browser-globals: 1.0.10
+ dev: false
+
/eslint-config-xo/[email protected]:
resolution: {integrity: sha512-QX+ZnQgzy/UtgF8dksIiIBzpYoEKmiL0CmZ8O0Gnby7rGXg8Cny1CXirmHp1zKYIpO7BuTmtWj8eUYOsGr0IGQ==}
engines: {node: '>=10'}
@@ -14597,6 +14631,14 @@ packages:
pkg-dir: 2.0.0
dev: false
+ /eslint-plugin-10x/1.5.0:
+ resolution: {integrity: sha512-MZn5wgGgzBwE7SYnrwAhq1vb/vlt/Jw+ycezFr5x/BW1Kn7Uoe3WzKt5T4OITFVS6//BprMTT+79mYQvjlfWTQ==}
+ peerDependencies:
+ eslint: ^7.8.0
+ dependencies:
+ jsx-ast-utils: 2.4.1
+ dev: false
+
/eslint-plugin-10x/[email protected]:
resolution: {integrity: sha512-MZn5wgGgzBwE7SYnrwAhq1vb/vlt/Jw+ycezFr5x/BW1Kn7Uoe3WzKt5T4OITFVS6//BprMTT+79mYQvjlfWTQ==}
peerDependencies:
@@ -14614,14 +14656,6 @@ packages:
jsx-ast-utils: 2.4.1
dev: true
- /eslint-plugin-10x/1.5.2:
- resolution: {integrity: sha512-SKVKlSJXJSU34Gw1m0Hp+PBO5az4zPIRU3+nC3Ya6x+nQ3Bq3kIfQUBH6dN811CawO6sacpc538IJAqTDSMSWQ==}
- peerDependencies:
- eslint: '>=7.8.0'
- dependencies:
- jsx-ast-utils: 2.4.1
- dev: false
-
/eslint-plugin-10x/[email protected]:
resolution: {integrity: sha512-SKVKlSJXJSU34Gw1m0Hp+PBO5az4zPIRU3+nC3Ya6x+nQ3Bq3kIfQUBH6dN811CawO6sacpc538IJAqTDSMSWQ==}
peerDependencies:
@@ -14729,8 +14763,8 @@ packages:
dependencies:
eslint: 8.13.0
- /eslint-plugin-react-hooks/4.4.0:
- resolution: {integrity: sha512-U3RVIfdzJaeKDQKEJbz5p3NW8/L80PCATJAfuojwbaEL+gBjfGdhUcGde+WGUW46Q5sr/NgxevsIiDtNXrvZaQ==}
+ /eslint-plugin-react-hooks/4.3.0:
+ resolution: {integrity: sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==}
engines: {node: '>=10'}
peerDependencies:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
@@ -14752,7 +14786,7 @@ packages:
dependencies:
eslint: 8.13.0
- /eslint-plugin-react/[email protected]:
+ /eslint-plugin-react/7.26.1:
resolution: {integrity: sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ==}
engines: {node: '>=4'}
peerDependencies:
@@ -14761,21 +14795,20 @@ packages:
array-includes: 3.1.4
array.prototype.flatmap: 1.2.5
doctrine: 2.1.0
- eslint: 7.32.0
- estraverse: 5.2.0
+ estraverse: 5.3.0
jsx-ast-utils: 3.2.1
- minimatch: 3.0.4
+ minimatch: 3.1.2
object.entries: 1.1.5
object.fromentries: 2.0.5
object.hasown: 1.1.0
object.values: 1.1.5
- prop-types: 15.7.2
+ prop-types: 15.8.1
resolve: 2.0.0-next.3
semver: 6.3.0
string.prototype.matchall: 4.0.6
dev: false
- /eslint-plugin-react/[email protected]:
+ /eslint-plugin-react/[email protected]:
resolution: {integrity: sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ==}
engines: {node: '>=4'}
peerDependencies:
@@ -14784,28 +14817,30 @@ packages:
array-includes: 3.1.4
array.prototype.flatmap: 1.2.5
doctrine: 2.1.0
- eslint: 8.13.0
- estraverse: 5.2.0
+ eslint: 7.32.0
+ estraverse: 5.3.0
jsx-ast-utils: 3.2.1
- minimatch: 3.0.4
+ minimatch: 3.1.2
object.entries: 1.1.5
object.fromentries: 2.0.5
object.hasown: 1.1.0
object.values: 1.1.5
- prop-types: 15.7.2
+ prop-types: 15.8.1
resolve: 2.0.0-next.3
semver: 6.3.0
string.prototype.matchall: 4.0.6
+ dev: false
- /eslint-plugin-react/7.29.4:
- resolution: {integrity: sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ==}
+ /eslint-plugin-react/[email protected]:
+ resolution: {integrity: sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ==}
engines: {node: '>=4'}
peerDependencies:
- eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7
dependencies:
array-includes: 3.1.4
array.prototype.flatmap: 1.2.5
doctrine: 2.1.0
+ eslint: 8.13.0
estraverse: 5.3.0
jsx-ast-utils: 3.2.1
minimatch: 3.1.2
@@ -14817,7 +14852,6 @@ packages:
resolve: 2.0.0-next.3
semver: 6.3.0
string.prototype.matchall: 4.0.6
- dev: false
/eslint-plugin-react/[email protected]:
resolution: {integrity: sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ==}
@@ -22342,6 +22376,7 @@ packages:
loose-envify: 1.4.0
object-assign: 4.1.1
react-is: 16.13.1
+ dev: false
/prop-types/15.8.1:
resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}