eslint-plugin-react-web-api 5.26.1 → 5.26.3

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 +11 -11
  2. 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.26.1";
24
+ var version = "5.26.3";
25
25
  //#endregion
26
26
  //#region src/utils/create-rule.ts
27
27
  function getDocsUrl(ruleName) {
@@ -248,8 +248,8 @@ var no_leaked_event_listener_default = createRule({
248
248
  type: "problem",
249
249
  docs: { description: "Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'." },
250
250
  messages: {
251
- "expected-remove-event-listener-in-cleanup": "An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.",
252
- "unexpected-inline-function": "A/an '{{eventMethodKind}}' should not have an inline listener function."
251
+ "unexpected-inline-function": "A/an '{{eventMethodKind}}' should not have an inline listener function.",
252
+ "expected-remove-event-listener-in-cleanup": "An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function."
253
253
  },
254
254
  schema: []
255
255
  },
@@ -566,9 +566,9 @@ var no_leaked_intersection_observer_default = createRule({
566
566
  type: "problem",
567
567
  docs: { description: "Enforces that every 'IntersectionObserver' created in a component or custom hook has a corresponding 'IntersectionObserver.disconnect()'." },
568
568
  messages: {
569
+ "unexpected-floating-instance": "An 'IntersectionObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup.",
569
570
  "expected-disconnect-in-control-flow": "Dynamically added 'IntersectionObserver.observe' should be cleared all at once using 'IntersectionObserver.disconnect' in the cleanup function.",
570
- "expected-disconnect-or-unobserve-in-cleanup": "An 'IntersectionObserver' instance created in 'useEffect' must be disconnected in the cleanup function.",
571
- "unexpected-floating-instance": "An 'IntersectionObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup."
571
+ "expected-disconnect-or-unobserve-in-cleanup": "An 'IntersectionObserver' instance created in 'useEffect' must be disconnected in the cleanup function."
572
572
  },
573
573
  schema: []
574
574
  },
@@ -698,8 +698,8 @@ var no_leaked_interval_default = createRule({
698
698
  type: "problem",
699
699
  docs: { description: "Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'." },
700
700
  messages: {
701
- "expected-clear-interval-in-cleanup": "A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.",
702
- "expected-interval-id": "A 'setInterval' must be assigned to a variable for proper cleanup."
701
+ "expected-interval-id": "A 'setInterval' must be assigned to a variable for proper cleanup.",
702
+ "expected-clear-interval-in-cleanup": "A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function."
703
703
  },
704
704
  schema: []
705
705
  },
@@ -813,9 +813,9 @@ var no_leaked_resize_observer_default = createRule({
813
813
  type: "problem",
814
814
  docs: { description: "Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'." },
815
815
  messages: {
816
+ "unexpected-floating-instance": "A 'ResizeObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup.",
816
817
  "expected-disconnect-in-control-flow": "Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.",
817
- "expected-disconnect-or-unobserve-in-cleanup": "A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.",
818
- "unexpected-floating-instance": "A 'ResizeObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup."
818
+ "expected-disconnect-or-unobserve-in-cleanup": "A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function."
819
819
  },
820
820
  schema: []
821
821
  },
@@ -945,8 +945,8 @@ var no_leaked_timeout_default = createRule({
945
945
  type: "problem",
946
946
  docs: { description: "Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'." },
947
947
  messages: {
948
- "expected-clear-timeout-in-cleanup": "A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.",
949
- "expected-timeout-id": "A 'setTimeout' must be assigned to a variable for proper cleanup."
948
+ "expected-timeout-id": "A 'setTimeout' must be assigned to a variable for proper cleanup.",
949
+ "expected-clear-timeout-in-cleanup": "A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function."
950
950
  },
951
951
  schema: []
952
952
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "5.26.1",
3
+ "version": "5.26.3",
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.26.1",
41
- "@eslint-react/core": "5.26.1",
42
- "@eslint-react/eslint": "5.26.1",
43
- "@eslint-react/shared": "5.26.1",
44
- "@eslint-react/var": "5.26.1",
40
+ "@eslint-react/ast": "5.26.3",
41
+ "@eslint-react/core": "5.26.3",
42
+ "@eslint-react/eslint": "5.26.3",
43
+ "@eslint-react/shared": "5.26.3",
44
+ "@eslint-react/var": "5.26.3",
45
45
  "@typescript-eslint/types": "^8.71.1",
46
46
  "@typescript-eslint/utils": "^8.71.1",
47
47
  "ts-pattern": "^5.9.0"