eslint-plugin-react-web-api 3.0.0-next.7 → 3.0.0-next.9

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, getConfigAdapters } from "@eslint-react/shared";
1
+ import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, defineRuleListener, getConfigAdapters } from "@eslint-react/shared";
2
2
  import * as ast from "@eslint-react/ast";
3
3
  import * as core from "@eslint-react/core";
4
4
  import { dual, or, unit } from "@eslint-react/eff";
@@ -43,7 +43,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
43
43
  //#endregion
44
44
  //#region package.json
45
45
  var name = "eslint-plugin-react-web-api";
46
- var version = "3.0.0-next.7";
46
+ var version = "3.0.0-next.9";
47
47
 
48
48
  //#endregion
49
49
  //#region src/types/component-phase.ts
@@ -166,7 +166,7 @@ function create$3(context) {
166
166
  data: { eventMethodKind: callKind }
167
167
  });
168
168
  }
169
- return {
169
+ return defineRuleListener({
170
170
  [":function"](node) {
171
171
  const kind = getFunctionKind$1(node);
172
172
  fEntries.push({
@@ -239,7 +239,7 @@ function create$3(context) {
239
239
  }
240
240
  }
241
241
  }
242
- };
242
+ });
243
243
  }
244
244
 
245
245
  //#endregion
@@ -275,7 +275,7 @@ function create$2(context) {
275
275
  function isInverseEntry(a, b) {
276
276
  return isAssignmentTargetEqual(context, a.timerId, b.timerId);
277
277
  }
278
- return {
278
+ return defineRuleListener({
279
279
  [":function"](node) {
280
280
  const kind = getPhaseKindOfFunction(node) ?? "other";
281
281
  fEntries.push({
@@ -349,7 +349,7 @@ function create$2(context) {
349
349
  }
350
350
  }
351
351
  }
352
- };
352
+ });
353
353
  }
354
354
 
355
355
  //#endregion
@@ -397,7 +397,7 @@ function create$1(context) {
397
397
  const oEntries = [];
398
398
  const uEntries = [];
399
399
  const dEntries = [];
400
- return {
400
+ return defineRuleListener({
401
401
  [":function"](node) {
402
402
  const kind = getFunctionKind(node);
403
403
  fEntries.push({
@@ -491,7 +491,7 @@ function create$1(context) {
491
491
  }
492
492
  }
493
493
  }
494
- };
494
+ });
495
495
  }
496
496
 
497
497
  //#endregion
@@ -527,7 +527,7 @@ function create(context) {
527
527
  function isInverseEntry(a, b) {
528
528
  return isAssignmentTargetEqual(context, a.timerId, b.timerId);
529
529
  }
530
- return {
530
+ return defineRuleListener({
531
531
  [":function"](node) {
532
532
  const kind = getPhaseKindOfFunction(node) ?? "other";
533
533
  fEntries.push({
@@ -597,7 +597,7 @@ function create(context) {
597
597
  }
598
598
  }
599
599
  }
600
- };
600
+ });
601
601
  }
602
602
 
603
603
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "3.0.0-next.7",
3
+ "version": "3.0.0-next.9",
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": "canary",
44
44
  "birecord": "^0.1.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/ast": "3.0.0-next.7",
47
- "@eslint-react/core": "3.0.0-next.7",
48
- "@eslint-react/shared": "3.0.0-next.7",
49
- "@eslint-react/eff": "3.0.0-next.7",
50
- "@eslint-react/var": "3.0.0-next.7"
46
+ "@eslint-react/ast": "3.0.0-next.9",
47
+ "@eslint-react/core": "3.0.0-next.9",
48
+ "@eslint-react/eff": "3.0.0-next.9",
49
+ "@eslint-react/var": "3.0.0-next.9",
50
+ "@eslint-react/shared": "3.0.0-next.9"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",