Skip to content

🎥 Make videos programmatically with React

explicit parser path

Jonny Burger20272606b806
diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json
index c07f7ef61c..116386ae9b 100644
--- a/packages/eslint-config/package.json
+++ b/packages/eslint-config/package.json
@@ -27,8 +27,7 @@
"eslint-plugin-react-hooks": "^4.2.0"
},
"devDependencies": {
- "@types/babel__core": "^7.1.12",
- "@types/babel__template": "^7.4.0",
+ "@types/node": "17.0.17",
"typescript": "^4.4.2"
},
"publishConfig": {
diff --git a/packages/eslint-config/src/index.ts b/packages/eslint-config/src/index.ts
index 90df8ac8f4..897b14f0eb 100644
--- a/packages/eslint-config/src/index.ts
+++ b/packages/eslint-config/src/index.ts
@@ -68,7 +68,7 @@ export = {
"@remotion",
],
extends: baseExtends,
- parser: "@typescript-eslint/parser",
+ parser: require.resolve("@typescript-eslint/parser"),
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d13a80f56a..d8b0298dce 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -427,8 +427,7 @@ importers:
packages/eslint-config:
specifiers:
'@remotion/eslint-plugin': 2.6.8
- '@types/babel__core': ^7.1.12
- '@types/babel__template': ^7.4.0
+ '@types/node': 17.0.17
'@typescript-eslint/eslint-plugin': 5.11.0
'@typescript-eslint/parser': 5.11.0
eslint-config-prettier: ^8.2.0
@@ -449,8 +448,7 @@ importers:
eslint-plugin-react: 7.26.1
eslint-plugin-react-hooks: 4.2.0
devDependencies:
- '@types/babel__core': 7.1.16
- '@types/babel__template': 7.4.1
+ '@types/node': 17.0.17
typescript: 4.4.4
packages/eslint-plugin: