From 43b29ecdbb8eda05dd4f888692b7cc1569915592 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 18 Feb 2025 16:48:10 -0500 Subject: [PATCH] [eslint] Target ES5 Update eslint-plugin-react-hooks to be built targetting ES5 instead. For various reasons our internal infra relies on these files being built already downleveled. --- packages/eslint-plugin-react-hooks/tsconfig.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin-react-hooks/tsconfig.json b/packages/eslint-plugin-react-hooks/tsconfig.json index e67b840d3fd7a..068ca0315a7b5 100644 --- a/packages/eslint-plugin-react-hooks/tsconfig.json +++ b/packages/eslint-plugin-react-hooks/tsconfig.json @@ -2,12 +2,13 @@ "extends": "@tsconfig/strictest/tsconfig.json", "compilerOptions": { "module": "ES2015", - "target": "ES2015", + "target": "ES5", "moduleResolution": "Bundler", "lib": ["ES2020"], "rootDir": ".", "sourceMap": false, - "types": ["estree-jsx", "node"] + "types": ["estree-jsx", "node"], + "downlevelIteration": true }, "exclude": ["node_modules"], "include": ["src/**/*.ts"]