eslint-plugin-react-web-api 1.42.2-beta.0 → 1.42.2-beta.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 CHANGED
@@ -56,10 +56,10 @@ var settings = {
56
56
 
57
57
  // package.json
58
58
  var name2 = "eslint-plugin-react-web-api";
59
- var version = "1.42.2-beta.0";
59
+ var version = "1.42.2-beta.5";
60
60
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("web-api"));
61
61
  function getPhaseKindOfFunction(node) {
62
- return tsPattern.match(node).when(ER4__namespace.isFunctionOfUseEffectSetup, () => "setup").when(ER4__namespace.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4__namespace.isFunctionOfComponentDidMount, () => "mount").when(ER4__namespace.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => eff._);
62
+ return tsPattern.match(node).when(ER4__namespace.isFunctionOfUseEffectSetup, () => "setup").when(ER4__namespace.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4__namespace.isFunctionOfComponentDidMount, () => "mount").when(ER4__namespace.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => null);
63
63
  }
64
64
 
65
65
  // src/rules/no-leaked-event-listener.ts
@@ -257,7 +257,7 @@ function create(context) {
257
257
  });
258
258
  }).with("abort", () => {
259
259
  abortedSignals.push(node.callee);
260
- }).otherwise(() => eff._);
260
+ }).otherwise(() => null);
261
261
  },
262
262
  ["Program:exit"]() {
263
263
  for (const aEntry of aEntries) {
@@ -532,7 +532,7 @@ function create3(context) {
532
532
  observerKind: "ResizeObserver",
533
533
  phase: fKind
534
534
  });
535
- }).otherwise(() => eff._);
535
+ }).otherwise(() => null);
536
536
  },
537
537
  ["NewExpression"](node) {
538
538
  const fEntry = fEntries.findLast((x) => x.kind !== "other");
package/dist/index.mjs CHANGED
@@ -32,10 +32,10 @@ var settings = {
32
32
 
33
33
  // package.json
34
34
  var name2 = "eslint-plugin-react-web-api";
35
- var version = "1.42.2-beta.0";
35
+ var version = "1.42.2-beta.5";
36
36
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("web-api"));
37
37
  function getPhaseKindOfFunction(node) {
38
- return match(node).when(ER4.isFunctionOfUseEffectSetup, () => "setup").when(ER4.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4.isFunctionOfComponentDidMount, () => "mount").when(ER4.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => _);
38
+ return match(node).when(ER4.isFunctionOfUseEffectSetup, () => "setup").when(ER4.isFunctionOfUseEffectCleanup, () => "cleanup").when(ER4.isFunctionOfComponentDidMount, () => "mount").when(ER4.isFunctionOfComponentWillUnmount, () => "unmount").otherwise(() => null);
39
39
  }
40
40
 
41
41
  // src/rules/no-leaked-event-listener.ts
@@ -233,7 +233,7 @@ function create(context) {
233
233
  });
234
234
  }).with("abort", () => {
235
235
  abortedSignals.push(node.callee);
236
- }).otherwise(() => _);
236
+ }).otherwise(() => null);
237
237
  },
238
238
  ["Program:exit"]() {
239
239
  for (const aEntry of aEntries) {
@@ -508,7 +508,7 @@ function create3(context) {
508
508
  observerKind: "ResizeObserver",
509
509
  phase: fKind
510
510
  });
511
- }).otherwise(() => _);
511
+ }).otherwise(() => null);
512
512
  },
513
513
  ["NewExpression"](node) {
514
514
  const fEntry = fEntries.findLast((x) => x.kind !== "other");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "1.42.2-beta.0",
3
+ "version": "1.42.2-beta.5",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -48,17 +48,17 @@
48
48
  "@typescript-eslint/utils": "^8.29.1",
49
49
  "string-ts": "^2.2.1",
50
50
  "ts-pattern": "^5.7.0",
51
- "@eslint-react/ast": "1.42.2-beta.0",
52
- "@eslint-react/eff": "1.42.2-beta.0",
53
- "@eslint-react/jsx": "1.42.2-beta.0",
54
- "@eslint-react/kit": "1.42.2-beta.0",
55
- "@eslint-react/core": "1.42.2-beta.0",
56
- "@eslint-react/shared": "1.42.2-beta.0",
57
- "@eslint-react/var": "1.42.2-beta.0"
51
+ "@eslint-react/ast": "1.42.2-beta.5",
52
+ "@eslint-react/core": "1.42.2-beta.5",
53
+ "@eslint-react/kit": "1.42.2-beta.5",
54
+ "@eslint-react/jsx": "1.42.2-beta.5",
55
+ "@eslint-react/shared": "1.42.2-beta.5",
56
+ "@eslint-react/eff": "1.42.2-beta.5",
57
+ "@eslint-react/var": "1.42.2-beta.5"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.1.0",
61
- "@types/react-dom": "^19.1.1",
61
+ "@types/react-dom": "^19.1.2",
62
62
  "tsup": "^8.4.0",
63
63
  "@local/configs": "0.0.0"
64
64
  },