Skip to content

Commit b6548d7

Browse files
justin808claude
andcommitted
Add @babel/preset-react for ESLint compatibility
ESLint with @babel/eslint-parser requires @babel/preset-react to parse JSX files, even when using SWC for transpilation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4eb45be commit b6548d7

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"devDependencies": {
103103
"@babel/core": "^7.21.0",
104104
"@babel/eslint-parser": "^7.16.5",
105+
"@babel/preset-react": "^7.18.6",
105106
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
106107
"@swc/jest": "^0.2.29",
107108
"@tailwindcss/typography": "^0.5.10",

yarn.lock

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@
6262
"@jridgewell/trace-mapping" "^0.3.28"
6363
jsesc "^3.0.2"
6464

65+
"@babel/helper-annotate-as-pure@^7.27.1":
66+
version "7.27.3"
67+
resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz#f31fd86b915fc4daf1f3ac6976c59be7084ed9c5"
68+
integrity sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==
69+
dependencies:
70+
"@babel/types" "^7.27.3"
71+
6572
"@babel/helper-compilation-targets@^7.27.2":
6673
version "7.27.2"
6774
resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz#46a0f6efab808d51d29ce96858dd10ce8732733d"
@@ -179,7 +186,7 @@
179186
dependencies:
180187
"@babel/helper-plugin-utils" "^7.8.0"
181188

182-
"@babel/plugin-syntax-jsx@^7.7.2":
189+
"@babel/plugin-syntax-jsx@^7.27.1", "@babel/plugin-syntax-jsx@^7.7.2":
183190
version "7.27.1"
184191
resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz#2f9beb5eff30fa507c5532d107daac7b888fa34c"
185192
integrity sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==
@@ -249,6 +256,51 @@
249256
dependencies:
250257
"@babel/helper-plugin-utils" "^7.27.1"
251258

259+
"@babel/plugin-transform-react-display-name@^7.27.1":
260+
version "7.28.0"
261+
resolved "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.28.0.tgz#6f20a7295fea7df42eb42fed8f896813f5b934de"
262+
integrity sha512-D6Eujc2zMxKjfa4Zxl4GHMsmhKKZ9VpcqIchJLvwTxad9zWIYulwYItBovpDOoNLISpcZSXoDJ5gaGbQUDqViA==
263+
dependencies:
264+
"@babel/helper-plugin-utils" "^7.27.1"
265+
266+
"@babel/plugin-transform-react-jsx-development@^7.27.1":
267+
version "7.27.1"
268+
resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.27.1.tgz#47ff95940e20a3a70e68ad3d4fcb657b647f6c98"
269+
integrity sha512-ykDdF5yI4f1WrAolLqeF3hmYU12j9ntLQl/AOG1HAS21jxyg1Q0/J/tpREuYLfatGdGmXp/3yS0ZA76kOlVq9Q==
270+
dependencies:
271+
"@babel/plugin-transform-react-jsx" "^7.27.1"
272+
273+
"@babel/plugin-transform-react-jsx@^7.27.1":
274+
version "7.27.1"
275+
resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.27.1.tgz#1023bc94b78b0a2d68c82b5e96aed573bcfb9db0"
276+
integrity sha512-2KH4LWGSrJIkVf5tSiBFYuXDAoWRq2MMwgivCf+93dd0GQi8RXLjKA/0EvRnVV5G0hrHczsquXuD01L8s6dmBw==
277+
dependencies:
278+
"@babel/helper-annotate-as-pure" "^7.27.1"
279+
"@babel/helper-module-imports" "^7.27.1"
280+
"@babel/helper-plugin-utils" "^7.27.1"
281+
"@babel/plugin-syntax-jsx" "^7.27.1"
282+
"@babel/types" "^7.27.1"
283+
284+
"@babel/plugin-transform-react-pure-annotations@^7.27.1":
285+
version "7.27.1"
286+
resolved "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.27.1.tgz#339f1ce355eae242e0649f232b1c68907c02e879"
287+
integrity sha512-JfuinvDOsD9FVMTHpzA/pBLisxpv1aSf+OIV8lgH3MuWrks19R27e6a6DipIg4aX1Zm9Wpb04p8wljfKrVSnPA==
288+
dependencies:
289+
"@babel/helper-annotate-as-pure" "^7.27.1"
290+
"@babel/helper-plugin-utils" "^7.27.1"
291+
292+
"@babel/preset-react@^7.18.6":
293+
version "7.27.1"
294+
resolved "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.27.1.tgz#86ea0a5ca3984663f744be2fd26cb6747c3fd0ec"
295+
integrity sha512-oJHWh2gLhU9dW9HHr42q0cI0/iHHXTLGe39qvpAZZzagHy0MzYLCnCVV0symeRvzmjHyVU7mw2K06E6u/JwbhA==
296+
dependencies:
297+
"@babel/helper-plugin-utils" "^7.27.1"
298+
"@babel/helper-validator-option" "^7.27.1"
299+
"@babel/plugin-transform-react-display-name" "^7.27.1"
300+
"@babel/plugin-transform-react-jsx" "^7.27.1"
301+
"@babel/plugin-transform-react-jsx-development" "^7.27.1"
302+
"@babel/plugin-transform-react-pure-annotations" "^7.27.1"
303+
252304
"@babel/runtime@^7.12.1", "@babel/runtime@^7.17.9", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2":
253305
version "7.28.4"
254306
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz#a70226016fabe25c5783b2f22d3e1c9bc5ca3326"
@@ -276,7 +328,7 @@
276328
"@babel/types" "^7.28.4"
277329
debug "^4.3.1"
278330

279-
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.2", "@babel/types@^7.28.4", "@babel/types@^7.3.3":
331+
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.28.2", "@babel/types@^7.28.4", "@babel/types@^7.3.3":
280332
version "7.28.4"
281333
resolved "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz#0a4e618f4c60a7cd6c11cb2d48060e4dbe38ac3a"
282334
integrity sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==

0 commit comments

Comments
 (0)