eslint-plugin-react-web-api 2.0.6 → 2.0.7-beta.1
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 +9 -9
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region package.json
|
|
39
39
|
var name = "eslint-plugin-react-web-api";
|
|
40
|
-
var version = "2.0.
|
|
40
|
+
var version = "2.0.7-beta.1";
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/utils/create-rule.ts
|
|
@@ -184,11 +184,11 @@ function create$3(context) {
|
|
|
184
184
|
checkInlineFunction(node, callKind, opts);
|
|
185
185
|
aEntries.push({
|
|
186
186
|
...opts,
|
|
187
|
-
kind: "addEventListener",
|
|
188
187
|
type,
|
|
189
188
|
node,
|
|
190
189
|
callee,
|
|
191
190
|
listener,
|
|
191
|
+
method: "addEventListener",
|
|
192
192
|
phase: fKind
|
|
193
193
|
});
|
|
194
194
|
}).with("removeEventListener", (callKind) => {
|
|
@@ -199,11 +199,11 @@ function create$3(context) {
|
|
|
199
199
|
checkInlineFunction(node, callKind, opts);
|
|
200
200
|
rEntries.push({
|
|
201
201
|
...opts,
|
|
202
|
-
kind: "removeEventListener",
|
|
203
202
|
type,
|
|
204
203
|
node,
|
|
205
204
|
callee,
|
|
206
205
|
listener,
|
|
206
|
+
method: "removeEventListener",
|
|
207
207
|
phase: fKind
|
|
208
208
|
});
|
|
209
209
|
}).with("abort", () => {
|
|
@@ -422,35 +422,35 @@ function create$1(context) {
|
|
|
422
422
|
const { object } = node.callee;
|
|
423
423
|
match(getCallKind$1(context, node)).with("disconnect", () => {
|
|
424
424
|
dEntries.push({
|
|
425
|
-
kind: "
|
|
425
|
+
kind: "ResizeObserver",
|
|
426
426
|
node,
|
|
427
427
|
callee: node.callee,
|
|
428
|
+
method: "disconnect",
|
|
428
429
|
observer: object,
|
|
429
|
-
observerKind: "ResizeObserver",
|
|
430
430
|
phase: fKind
|
|
431
431
|
});
|
|
432
432
|
}).with("observe", () => {
|
|
433
433
|
const [element] = node.arguments;
|
|
434
434
|
if (element == null) return;
|
|
435
435
|
oEntries.push({
|
|
436
|
-
kind: "
|
|
436
|
+
kind: "ResizeObserver",
|
|
437
437
|
node,
|
|
438
438
|
callee: node.callee,
|
|
439
439
|
element,
|
|
440
|
+
method: "observe",
|
|
440
441
|
observer: object,
|
|
441
|
-
observerKind: "ResizeObserver",
|
|
442
442
|
phase: fKind
|
|
443
443
|
});
|
|
444
444
|
}).with("unobserve", () => {
|
|
445
445
|
const [element] = node.arguments;
|
|
446
446
|
if (element == null) return;
|
|
447
447
|
uEntries.push({
|
|
448
|
-
kind: "
|
|
448
|
+
kind: "ResizeObserver",
|
|
449
449
|
node,
|
|
450
450
|
callee: node.callee,
|
|
451
451
|
element,
|
|
452
|
+
method: "unobserve",
|
|
452
453
|
observer: object,
|
|
453
|
-
observerKind: "ResizeObserver",
|
|
454
454
|
phase: fKind
|
|
455
455
|
});
|
|
456
456
|
}).otherwise(() => null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@typescript-eslint/utils": "^8.45.0",
|
|
41
41
|
"string-ts": "^2.2.1",
|
|
42
42
|
"ts-pattern": "^5.8.0",
|
|
43
|
-
"@eslint-react/ast": "2.0.
|
|
44
|
-
"@eslint-react/core": "2.0.
|
|
45
|
-
"@eslint-react/eff": "2.0.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
43
|
+
"@eslint-react/ast": "2.0.7-beta.1",
|
|
44
|
+
"@eslint-react/core": "2.0.7-beta.1",
|
|
45
|
+
"@eslint-react/eff": "2.0.7-beta.1",
|
|
46
|
+
"@eslint-react/shared": "2.0.7-beta.1",
|
|
47
|
+
"@eslint-react/var": "2.0.7-beta.1",
|
|
48
|
+
"@eslint-react/kit": "2.0.7-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/react": "^19.2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@local/configs": "0.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"eslint": "^9.
|
|
57
|
+
"eslint": "^9.37.0",
|
|
58
58
|
"typescript": "^5.9.3"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|