eslint-plugin-react-x 5.14.0 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -144,7 +144,7 @@ const rules$6 = {
|
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region package.json
|
|
146
146
|
var name$6 = "eslint-plugin-react-x";
|
|
147
|
-
var version = "5.14.
|
|
147
|
+
var version = "5.14.1";
|
|
148
148
|
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/utils/create-rule.ts
|
|
@@ -7547,9 +7547,9 @@ function create$2(context) {
|
|
|
7547
7547
|
});
|
|
7548
7548
|
},
|
|
7549
7549
|
"Program:exit"(node) {
|
|
7550
|
-
const
|
|
7550
|
+
const comps = fc.api.getAllComponents(node);
|
|
7551
7551
|
const hooks = hc.api.getAllHooks(node);
|
|
7552
|
-
const funcs = [...
|
|
7552
|
+
const funcs = [...comps, ...hooks];
|
|
7553
7553
|
for (const { func, node } of evalCalls) {
|
|
7554
7554
|
if (!funcs.some((f) => f.node === func)) continue;
|
|
7555
7555
|
context.report({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.1",
|
|
4
4
|
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"string-ts": "^2.3.1",
|
|
46
46
|
"ts-api-utils": "^2.5.0",
|
|
47
47
|
"ts-pattern": "^5.9.0",
|
|
48
|
-
"@eslint-react/ast": "5.14.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/shared": "5.14.
|
|
53
|
-
"@eslint-react/var": "5.14.
|
|
48
|
+
"@eslint-react/ast": "5.14.1",
|
|
49
|
+
"@eslint-react/jsx": "5.14.1",
|
|
50
|
+
"@eslint-react/core": "5.14.1",
|
|
51
|
+
"@eslint-react/eslint": "5.14.1",
|
|
52
|
+
"@eslint-react/shared": "5.14.1",
|
|
53
|
+
"@eslint-react/var": "5.14.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/react": "^19.2.17",
|