[eslint] Target ES5 (#32420)
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.
lauren committed
Feb 18, 2025 at 16:56 UTC
a84862dbdc8dada08a9d1df1c72144cd767704b6
1 file changed
+3
-2
packages/eslint-plugin-react-hooks/tsconfig.json
+3
-2
@@ -2,12 +2,13 @@
2
"extends": "@tsconfig/strictest/tsconfig.json",
3
"compilerOptions": {
4
"module": "ES2015",
5
- "target": "ES2015",
5
+ "target": "ES5",
6
"moduleResolution": "Bundler",
7
"lib": ["ES2020"],
8
"rootDir": ".",
9
"sourceMap": false,
10
- "types": ["estree-jsx", "node"]
10
+ "types": ["estree-jsx", "node"],
11
+ "downlevelIteration": true
12
},
13
"exclude": ["node_modules"],
14
"include": ["src/**/*.ts"]