eslint-plugin-react-x 5.2.2-next.0 → 5.2.3-beta.0
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 +5 -5
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_ESLINT_REACT_SETTINGS, getSettingsFromContext, toRegExp } from "@eslint-react/shared";
|
|
2
|
-
import { Check, Compare, Extract,
|
|
2
|
+
import { Check, Compare, Extract, Traverse, is, isOneOf } from "@eslint-react/ast";
|
|
3
3
|
import * as core from "@eslint-react/core";
|
|
4
4
|
import { isUseRefCall } from "@eslint-react/core";
|
|
5
5
|
import { merge } from "@eslint-react/eslint";
|
|
@@ -143,7 +143,7 @@ const rules$7 = {
|
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region package.json
|
|
145
145
|
var name$6 = "eslint-plugin-react-x";
|
|
146
|
-
var version = "5.2.
|
|
146
|
+
var version = "5.2.3-beta.0";
|
|
147
147
|
|
|
148
148
|
//#endregion
|
|
149
149
|
//#region src/rules/component-hook-factories/lib.ts
|
|
@@ -2589,6 +2589,9 @@ function create$23(context) {
|
|
|
2589
2589
|
if (!core.isCreateContextCall(context, node)) return;
|
|
2590
2590
|
createCalls.push(node);
|
|
2591
2591
|
},
|
|
2592
|
+
[core.SEL_FUNCTION_DISPLAY_NAME_ASSIGNMENT](node) {
|
|
2593
|
+
displayNameAssignments.push(node);
|
|
2594
|
+
},
|
|
2592
2595
|
"Program:exit"() {
|
|
2593
2596
|
for (const call of createCalls) {
|
|
2594
2597
|
const id = resolveEnclosingAssignmentTarget(call);
|
|
@@ -2623,9 +2626,6 @@ function create$23(context) {
|
|
|
2623
2626
|
node: id
|
|
2624
2627
|
});
|
|
2625
2628
|
}
|
|
2626
|
-
},
|
|
2627
|
-
[Select.displayNameAssignment](node) {
|
|
2628
|
-
displayNameAssignments.push(node);
|
|
2629
2629
|
}
|
|
2630
2630
|
});
|
|
2631
2631
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3-beta.0",
|
|
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",
|
|
@@ -37,30 +37,30 @@
|
|
|
37
37
|
"./package.json"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/scope-manager": "^8.58.
|
|
41
|
-
"@typescript-eslint/type-utils": "^8.58.
|
|
42
|
-
"@typescript-eslint/types": "^8.58.
|
|
43
|
-
"@typescript-eslint/typescript-estree": "^8.58.
|
|
44
|
-
"@typescript-eslint/utils": "^8.58.
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.58.2",
|
|
41
|
+
"@typescript-eslint/type-utils": "^8.58.2",
|
|
42
|
+
"@typescript-eslint/types": "^8.58.2",
|
|
43
|
+
"@typescript-eslint/typescript-estree": "^8.58.2",
|
|
44
|
+
"@typescript-eslint/utils": "^8.58.2",
|
|
45
45
|
"compare-versions": "^6.1.1",
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-api-utils": "^2.5.0",
|
|
48
48
|
"ts-pattern": "^5.9.0",
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/jsx": "5.2.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
49
|
+
"@eslint-react/ast": "5.2.3-beta.0",
|
|
50
|
+
"@eslint-react/core": "5.2.3-beta.0",
|
|
51
|
+
"@eslint-react/eslint": "5.2.3-beta.0",
|
|
52
|
+
"@eslint-react/jsx": "5.2.3-beta.0",
|
|
53
|
+
"@eslint-react/shared": "5.2.3-beta.0",
|
|
54
|
+
"@eslint-react/var": "5.2.3-beta.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.2.14",
|
|
58
58
|
"@types/react-dom": "^19.2.3",
|
|
59
59
|
"eslint": "^10.2.0",
|
|
60
|
-
"tsdown": "^0.21.
|
|
60
|
+
"tsdown": "^0.21.8",
|
|
61
61
|
"tsl-dx": "^0.10.3",
|
|
62
|
-
"@local/
|
|
63
|
-
"@local/
|
|
62
|
+
"@local/configs": "0.0.0",
|
|
63
|
+
"@local/eff": "3.0.0-beta.72"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"eslint": "^10.2.0",
|