eslint-plugin-react-web-api 5.24.7 → 5.24.8
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 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region package.json
|
|
23
23
|
var name$1 = "eslint-plugin-react-web-api";
|
|
24
|
-
var version = "5.24.
|
|
24
|
+
var version = "5.24.8";
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/utils/create-rule.ts
|
|
27
27
|
function getDocsUrl(ruleName) {
|
|
@@ -776,12 +776,12 @@ function isFromObserver(context, node, name) {
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
function isFromRefCurrent(context, node, refId) {
|
|
779
|
-
let
|
|
780
|
-
if (Check.isIdentifier(
|
|
781
|
-
const initNode = resolve(context,
|
|
782
|
-
if (initNode != null)
|
|
779
|
+
let expr = Check.isTypeExpression(node) ? Extract.unwrap(node) : node;
|
|
780
|
+
if (Check.isIdentifier(expr)) {
|
|
781
|
+
const initNode = resolve(context, expr);
|
|
782
|
+
if (initNode != null) expr = Extract.unwrap(initNode);
|
|
783
783
|
}
|
|
784
|
-
return
|
|
784
|
+
return expr.type === AST_NODE_TYPES.MemberExpression && !expr.computed && Check.isIdentifier(Extract.unwrap(expr.property), "current") && isAssignmentTargetEqual(context, expr.object, refId);
|
|
785
785
|
}
|
|
786
786
|
//#endregion
|
|
787
787
|
//#region src/rules/no-leaked-resize-observer/no-leaked-resize-observer.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.8",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eslint-react/ast": "5.24.
|
|
41
|
-
"@eslint-react/core": "5.24.
|
|
42
|
-
"@eslint-react/eslint": "5.24.
|
|
43
|
-
"@eslint-react/shared": "5.24.
|
|
44
|
-
"@eslint-react/var": "5.24.
|
|
40
|
+
"@eslint-react/ast": "5.24.8",
|
|
41
|
+
"@eslint-react/core": "5.24.8",
|
|
42
|
+
"@eslint-react/eslint": "5.24.8",
|
|
43
|
+
"@eslint-react/shared": "5.24.8",
|
|
44
|
+
"@eslint-react/var": "5.24.8",
|
|
45
45
|
"@typescript-eslint/types": "^8.71.1",
|
|
46
46
|
"@typescript-eslint/utils": "^8.71.1",
|
|
47
47
|
"ts-pattern": "^5.9.0"
|