From c6b437b4026c06843a19eb3bce9da8ef4d15aa63 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 3 Jul 2023 12:25:33 -0400 Subject: [PATCH] [eslint-plugin] Remove fbt dependencies I incorrectly included these as deps, we were only using these to verify codegen. It seems fine to leave in but when I imported it internally vscode would error, so just remove it --- .../forget/packages/eslint-plugin-react-forget/package.json | 2 -- .../src/rules/ReactForgetDiagnostics.ts | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/compiler/forget/packages/eslint-plugin-react-forget/package.json b/compiler/forget/packages/eslint-plugin-react-forget/package.json index b7a7b61931..59896f0af1 100644 --- a/compiler/forget/packages/eslint-plugin-react-forget/package.json +++ b/compiler/forget/packages/eslint-plugin-react-forget/package.json @@ -21,8 +21,6 @@ "@babel/core": "^7.19.1", "@babel/parser": "^7.19.1", "@babel/traverse": "^7.19.1", - "babel-plugin-fbt": "^1.0.0", - "babel-plugin-fbt-runtime": "^1.0.0", "babel-plugin-react-forget": "*", "hermes-parser": "^0.12.1" }, diff --git a/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts b/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts index 40a278d591..fe61151e73 100644 --- a/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts +++ b/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts @@ -90,11 +90,7 @@ const rule: Rule.RuleModule = { filename, highlightCode: false, retainLines: true, - plugins: [ - [ReactForgetBabelPlugin, COMPILER_OPTIONS], - "babel-plugin-fbt", - "babel-plugin-fbt-runtime", - ], + plugins: [[ReactForgetBabelPlugin, COMPILER_OPTIONS]], sourceType: "module", }); } catch (err) {