eslint-plugin-react-hooks-extra 1.24.0-next.11 → 1.24.0-next.12
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/dist/index.mjs +3 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var VAR5__namespace = /*#__PURE__*/_interopNamespace(VAR5);
|
|
|
31
31
|
|
|
32
32
|
// package.json
|
|
33
33
|
var name = "eslint-plugin-react-hooks-extra";
|
|
34
|
-
var version = "1.24.0-next.
|
|
34
|
+
var version = "1.24.0-next.12";
|
|
35
35
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
36
36
|
function isFromHookCall(name2, context, settings, predicate = eff.returnTrue) {
|
|
37
37
|
const hookAlias = settings.additionalHooks[name2] ?? [];
|
|
@@ -74,7 +74,7 @@ function isSetFunctionCall(context, settings) {
|
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
const indexScope = context.sourceCode.getScope(node);
|
|
77
|
-
const indexValue = VAR5__namespace.
|
|
77
|
+
const indexValue = VAR5__namespace.toStaticValue({
|
|
78
78
|
kind: "lazy",
|
|
79
79
|
node: index,
|
|
80
80
|
initialScope: indexScope
|
|
@@ -94,7 +94,7 @@ function isSetFunctionCall(context, settings) {
|
|
|
94
94
|
}
|
|
95
95
|
const property = node.callee.property;
|
|
96
96
|
const propertyScope = context.sourceCode.getScope(node);
|
|
97
|
-
const propertyValue = VAR5__namespace.
|
|
97
|
+
const propertyValue = VAR5__namespace.toStaticValue({
|
|
98
98
|
kind: "lazy",
|
|
99
99
|
node: property,
|
|
100
100
|
initialScope: propertyScope
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { match } from 'ts-pattern';
|
|
|
8
8
|
|
|
9
9
|
// package.json
|
|
10
10
|
var name = "eslint-plugin-react-hooks-extra";
|
|
11
|
-
var version = "1.24.0-next.
|
|
11
|
+
var version = "1.24.0-next.12";
|
|
12
12
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
13
13
|
function isFromHookCall(name2, context, settings, predicate = returnTrue) {
|
|
14
14
|
const hookAlias = settings.additionalHooks[name2] ?? [];
|
|
@@ -51,7 +51,7 @@ function isSetFunctionCall(context, settings) {
|
|
|
51
51
|
return false;
|
|
52
52
|
}
|
|
53
53
|
const indexScope = context.sourceCode.getScope(node);
|
|
54
|
-
const indexValue = VAR5.
|
|
54
|
+
const indexValue = VAR5.toStaticValue({
|
|
55
55
|
kind: "lazy",
|
|
56
56
|
node: index,
|
|
57
57
|
initialScope: indexScope
|
|
@@ -71,7 +71,7 @@ function isSetFunctionCall(context, settings) {
|
|
|
71
71
|
}
|
|
72
72
|
const property = node.callee.property;
|
|
73
73
|
const propertyScope = context.sourceCode.getScope(node);
|
|
74
|
-
const propertyValue = VAR5.
|
|
74
|
+
const propertyValue = VAR5.toStaticValue({
|
|
75
75
|
kind: "lazy",
|
|
76
76
|
node: property,
|
|
77
77
|
initialScope: propertyScope
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.24.0-next.
|
|
3
|
+
"version": "1.24.0-next.12",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"@typescript-eslint/utils": "^8.20.0",
|
|
49
49
|
"string-ts": "^2.2.0",
|
|
50
50
|
"ts-pattern": "^5.6.0",
|
|
51
|
-
"@eslint-react/ast": "1.24.0-next.
|
|
52
|
-
"@eslint-react/core": "1.24.0-next.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/shared": "1.24.0-next.
|
|
55
|
-
"@eslint-react/var": "1.24.0-next.
|
|
56
|
-
"@eslint-react/
|
|
51
|
+
"@eslint-react/ast": "1.24.0-next.12",
|
|
52
|
+
"@eslint-react/core": "1.24.0-next.12",
|
|
53
|
+
"@eslint-react/jsx": "1.24.0-next.12",
|
|
54
|
+
"@eslint-react/shared": "1.24.0-next.12",
|
|
55
|
+
"@eslint-react/var": "1.24.0-next.12",
|
|
56
|
+
"@eslint-react/eff": "1.24.0-next.12"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.7",
|