eslint-plugin-react-web-api 5.2.4-beta.3 → 5.2.4-beta.4
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 +6 -6
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { Check, Compare, Extract, Traverse, isOneOf } from "@eslint-react/ast";
|
|
|
3
3
|
import * as core from "@eslint-react/core";
|
|
4
4
|
import { merge } from "@eslint-react/eslint";
|
|
5
5
|
import { isAssignmentTargetEqual, isValueEqual, resolve, resolveEnclosingAssignmentTarget } from "@eslint-react/var";
|
|
6
|
-
import { AST_NODE_TYPES
|
|
6
|
+
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
7
7
|
import { getStaticValue } from "@typescript-eslint/utils/ast-utils";
|
|
8
8
|
import { P, isMatching, match } from "ts-pattern";
|
|
9
9
|
import birecord from "birecord";
|
|
10
|
-
import {
|
|
10
|
+
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
11
11
|
|
|
12
12
|
//#region \0rolldown/runtime.js
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
@@ -28,7 +28,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region package.json
|
|
30
30
|
var name$1 = "eslint-plugin-react-web-api";
|
|
31
|
-
var version = "5.2.4-beta.
|
|
31
|
+
var version = "5.2.4-beta.4";
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/types/component-phase.ts
|
|
@@ -48,8 +48,8 @@ const createRule = ESLintUtils.RuleCreator(getDocsUrl);
|
|
|
48
48
|
//#region src/rules/no-leaked-event-listener/lib.ts
|
|
49
49
|
function findProperty(of, named) {
|
|
50
50
|
for (const property of of) {
|
|
51
|
-
if (property.type === AST_NODE_TYPES
|
|
52
|
-
if (property.type === AST_NODE_TYPES
|
|
51
|
+
if (property.type === AST_NODE_TYPES.Property && Extract.getPropertyName(property.key) === named) return property;
|
|
52
|
+
if (property.type === AST_NODE_TYPES.SpreadElement && property.argument.type === AST_NODE_TYPES.ObjectExpression) {
|
|
53
53
|
const found = findProperty(property.argument.properties, named);
|
|
54
54
|
if (found != null) return found;
|
|
55
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "5.2.4-beta.
|
|
3
|
+
"version": "5.2.4-beta.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@typescript-eslint/utils": "^8.58.2",
|
|
44
44
|
"birecord": "^0.1.1",
|
|
45
45
|
"ts-pattern": "^5.9.0",
|
|
46
|
-
"@eslint-react/ast": "5.2.4-beta.
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
46
|
+
"@eslint-react/ast": "5.2.4-beta.4",
|
|
47
|
+
"@eslint-react/core": "5.2.4-beta.4",
|
|
48
|
+
"@eslint-react/eslint": "5.2.4-beta.4",
|
|
49
|
+
"@eslint-react/shared": "5.2.4-beta.4",
|
|
50
|
+
"@eslint-react/var": "5.2.4-beta.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.2.14",
|