Skip to content

Commit 792be01

Browse files
authored
refactor: code optimizations (#1100)
1 parent bde3a3f commit 792be01

File tree

38 files changed

+952
-990
lines changed

38 files changed

+952
-990
lines changed

.pkgs/eslint-plugin-local/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"devDependencies": {
4444
"@local/configs": "workspace:*",
4545
"@types/react": "^19.1.2",
46-
"@types/react-dom": "^19.1.2",
46+
"@types/react-dom": "^19.1.3",
4747
"tsup": "^8.4.0"
4848
},
4949
"peerDependencies": {

apps/website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@eslint/markdown": "^6.4.0",
3838
"@local/configs": "workspace:*",
3939
"@mdx-js/mdx": "^3.1.0",
40-
"@tailwindcss/postcss": "^4.1.4",
40+
"@tailwindcss/postcss": "^4.1.5",
4141
"@theguild/remark-mermaid": "^0.3.0",
4242
"@tsconfig/next": "^2.0.3",
4343
"@tsconfig/node22": "^22.0.1",
@@ -46,7 +46,7 @@
4646
"@types/mdx": "^2.0.13",
4747
"@types/node": "^22.15.3",
4848
"@types/react": "^19.1.2",
49-
"@types/react-dom": "^19.1.2",
49+
"@types/react-dom": "^19.1.3",
5050
"autoprefixer": "^10.4.21",
5151
"dedent": "^1.5.3",
5252
"eslint": "^9.25.1",
@@ -58,7 +58,7 @@
5858
"eslint-plugin-unicorn": "^59.0.0",
5959
"importx": "^0.5.2",
6060
"postcss": "^8.5.3",
61-
"tailwindcss": "^4.1.4",
61+
"tailwindcss": "^4.1.5",
6262
"tailwindcss-animated": "^2.0.0",
6363
"typescript": "^5.8.3",
6464
"typescript-eslint": "^8.31.1"

examples/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@tsconfig/strictest": "^2.0.5",
2525
"@types/node": "^22.15.3",
2626
"@types/react": "^19.1.2",
27-
"@types/react-dom": "^19.1.2",
27+
"@types/react-dom": "^19.1.3",
2828
"eslint": "^9.25.1",
2929
"eslint-config-flat-gitignore": "^2.1.0",
3030
"eslint-plugin-react-hooks": "^5.2.0",

examples/vite-react-dom-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"@tsconfig/strictest": "^2.0.5",
2323
"@tsconfig/vite-react": "^3.4.0",
2424
"@types/react": "^19.1.2",
25-
"@types/react-dom": "^19.1.2",
25+
"@types/react-dom": "^19.1.3",
2626
"@vitejs/plugin-react": "^4.4.1",
2727
"eslint": "^9.25.1",
2828
"eslint-plugin-react-hooks": "^5.2.0",
2929
"eslint-plugin-react-refresh": "^0.4.20",
3030
"typescript": "^5.8.3",
3131
"typescript-eslint": "^8.31.1",
32-
"vite": "^6.3.3"
32+
"vite": "^6.3.4"
3333
},
3434
"engines": {
3535
"node": ">=20.19.0"

examples/vite-react-dom-js-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"@eslint/config-inspector": "^1.0.2",
2020
"@eslint/js": "^9.25.1",
2121
"@types/react": "^19.1.2",
22-
"@types/react-dom": "^19.1.2",
22+
"@types/react-dom": "^19.1.3",
2323
"@vitejs/plugin-react": "^4.4.1",
2424
"eslint": "^9.25.1",
2525
"eslint-plugin-react-hooks": "^5.2.0",
2626
"eslint-plugin-react-refresh": "^0.4.20",
2727
"globals": "^16.0.0",
28-
"vite": "^6.3.3"
28+
"vite": "^6.3.4"
2929
},
3030
"engines": {
3131
"node": ">=20.19.0"

examples/vite-react-dom-js-with-babel-eslint-parser-app/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"react-dom": "^19.1.0"
1616
},
1717
"devDependencies": {
18-
"@babel/core": "^7.26.10",
19-
"@babel/eslint-parser": "^7.27.0",
20-
"@babel/preset-env": "^7.26.9",
21-
"@babel/preset-react": "^7.26.3",
18+
"@babel/core": "^7.27.1",
19+
"@babel/eslint-parser": "^7.27.1",
20+
"@babel/preset-env": "^7.27.1",
21+
"@babel/preset-react": "^7.27.1",
2222
"@eslint/config-inspector": "^1.0.2",
2323
"@eslint/js": "^9.25.1",
2424
"@types/babel__core": "~7.20.5",
2525
"@types/babel__preset-env": "~7.10.0",
2626
"@types/react": "^19.1.2",
27-
"@types/react-dom": "^19.1.2",
27+
"@types/react-dom": "^19.1.3",
2828
"@vitejs/plugin-react": "^4.4.1",
2929
"eslint": "^9.25.1",
3030
"eslint-plugin-react-debug": "workspace:*",
@@ -35,7 +35,7 @@
3535
"eslint-plugin-react-web-api": "workspace:*",
3636
"eslint-plugin-react-x": "workspace:*",
3737
"globals": "^16.0.0",
38-
"vite": "^6.3.3"
38+
"vite": "^6.3.4"
3939
},
4040
"engines": {
4141
"node": ">=20.19.0"

examples/vite-react-dom-with-ts-blank-eslint-parser-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@tsconfig/strictest": "^2.0.5",
2525
"@tsconfig/vite-react": "^3.4.0",
2626
"@types/react": "^19.1.2",
27-
"@types/react-dom": "^19.1.2",
27+
"@types/react-dom": "^19.1.3",
2828
"@vitejs/plugin-react": "^4.4.1",
2929
"eslint": "^9.25.1",
3030
"eslint-plugin-react-hooks": "^5.2.0",
@@ -33,7 +33,7 @@
3333
"ts-blank-eslint-parser": "^0.4.3",
3434
"typescript": "^5.8.3",
3535
"typescript-eslint": "^8.31.1",
36-
"vite": "^6.3.3"
36+
"vite": "^6.3.4"
3737
},
3838
"engines": {
3939
"node": ">=20.19.0"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@tsconfig/strictest": "^2.0.5",
6161
"@types/node": "^22.15.3",
6262
"@types/react": "^19.1.2",
63-
"@types/react-dom": "^19.1.2",
63+
"@types/react-dom": "^19.1.3",
6464
"@typescript-eslint/parser": "^8.31.1",
6565
"@typescript-eslint/rule-tester": "^8.31.1",
6666
"@typescript-eslint/types": "^8.31.1",
@@ -109,7 +109,7 @@
109109
],
110110
"overrides": {
111111
"@types/react": "^19.1.2",
112-
"@types/react-dom": "^19.1.2",
112+
"@types/react-dom": "^19.1.3",
113113
"cross-spawn": "^7.0.6",
114114
"esbuild": "^0.25.3",
115115
"lucide-react": "^0.503.0",

packages/core/src/utils/is-react-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function isReactAPI(api: string): isReactAPI.ReturnType {
1818
{
1919
if (node == null) return false;
2020
const getText = (n: TSESTree.Node) => context.sourceCode.getText(n);
21-
const name = AST.toString(node, getText);
21+
const name = AST.toStringFormat(node, getText);
2222
if (name === api) return true;
2323
if (name.substring(name.indexOf(".") + 1) === api) return true;
2424
return false;

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"devDependencies": {
5858
"@local/configs": "workspace:*",
5959
"@types/react": "^19.1.2",
60-
"@types/react-dom": "^19.1.2",
60+
"@types/react-dom": "^19.1.3",
6161
"tsup": "^8.4.0"
6262
},
6363
"peerDependencies": {

0 commit comments

Comments
 (0)