eslint-plugin-react-web-api 3.0.0-rc.4 → 3.0.0-rc.5
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 +6 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name$1 = "eslint-plugin-react-web-api";
|
|
29
|
-
var version = "3.0.0-rc.
|
|
29
|
+
var version = "3.0.0-rc.5";
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region ../../../.pkgs/eff/dist/index.js
|
|
@@ -187,7 +187,11 @@ function getFunctionKind$1(node) {
|
|
|
187
187
|
function getSignalValueExpression(context, node) {
|
|
188
188
|
if (node == null) return null;
|
|
189
189
|
switch (node.type) {
|
|
190
|
-
case AST_NODE_TYPES.Identifier:
|
|
190
|
+
case AST_NODE_TYPES.Identifier: {
|
|
191
|
+
const resolved = resolve(context, node);
|
|
192
|
+
if (resolved != null && ast.isFunction(resolved)) return node;
|
|
193
|
+
return getSignalValueExpression(context, resolved);
|
|
194
|
+
}
|
|
191
195
|
case AST_NODE_TYPES.MemberExpression: return node;
|
|
192
196
|
default: return null;
|
|
193
197
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.5",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"@typescript-eslint/utils": "^8.57.0",
|
|
44
44
|
"birecord": "^0.1.1",
|
|
45
45
|
"ts-pattern": "^5.9.0",
|
|
46
|
-
"@eslint-react/ast": "3.0.0-rc.
|
|
47
|
-
"@eslint-react/core": "3.0.0-rc.
|
|
48
|
-
"@eslint-react/shared": "3.0.0-rc.
|
|
49
|
-
"@eslint-react/var": "3.0.0-rc.
|
|
46
|
+
"@eslint-react/ast": "3.0.0-rc.5",
|
|
47
|
+
"@eslint-react/core": "3.0.0-rc.5",
|
|
48
|
+
"@eslint-react/shared": "3.0.0-rc.5",
|
|
49
|
+
"@eslint-react/var": "3.0.0-rc.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.2.14",
|
|
53
53
|
"@types/react-dom": "^19.2.3",
|
|
54
54
|
"eslint": "^10.0.3",
|
|
55
55
|
"tsdown": "^0.21.2",
|
|
56
|
-
"@local/
|
|
57
|
-
"@local/
|
|
56
|
+
"@local/eff": "3.0.0-beta.72",
|
|
57
|
+
"@local/configs": "0.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"eslint": "^10.0.0",
|