eslint-plugin-react-web-api 2.5.7 → 2.5.8-next.0

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 +3 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, getConfigAdapters } from "@eslint-react/shared";
2
2
  import * as AST from "@eslint-react/ast";
3
- import { ComponentPhaseRelevance, getInstanceId, getPhaseKindOfFunction, isInitializedFromReactNative, isInstanceIdEqual, isInversePhase } from "@eslint-react/core";
3
+ import { ComponentPhaseRelevance, findEnclosingAssignmentTarget, getPhaseKindOfFunction, isInitializedFromReactNative, isInstanceIdEqual, isInversePhase } from "@eslint-react/core";
4
4
  import { or, unit } from "@eslint-react/eff";
5
5
  import { findAssignmentTarget, findProperty, findVariable, getVariableDefinitionNode, isNodeValueEqual } from "@eslint-react/var";
6
6
  import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
@@ -42,7 +42,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
42
42
  //#endregion
43
43
  //#region package.json
44
44
  var name = "eslint-plugin-react-web-api";
45
- var version = "2.5.7";
45
+ var version = "2.5.8-next.0";
46
46
 
47
47
  //#endregion
48
48
  //#region src/utils/create-rule.ts
@@ -449,7 +449,7 @@ function create$1(context) {
449
449
  if (fEntry == null) return;
450
450
  if (!ComponentPhaseRelevance.has(fEntry.kind)) return;
451
451
  if (!isNewResizeObserver(node)) return;
452
- const id = getInstanceId(node);
452
+ const id = findEnclosingAssignmentTarget(node);
453
453
  if (id == null) {
454
454
  context.report({
455
455
  messageId: "unexpectedFloatingInstance",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "2.5.7",
3
+ "version": "2.5.8-next.0",
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.53.0",
44
44
  "string-ts": "^2.3.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/ast": "2.5.7",
47
- "@eslint-react/core": "2.5.7",
48
- "@eslint-react/shared": "2.5.7",
49
- "@eslint-react/eff": "2.5.7",
50
- "@eslint-react/var": "2.5.7"
46
+ "@eslint-react/ast": "2.5.8-next.0",
47
+ "@eslint-react/core": "2.5.8-next.0",
48
+ "@eslint-react/eff": "2.5.8-next.0",
49
+ "@eslint-react/shared": "2.5.8-next.0",
50
+ "@eslint-react/var": "2.5.8-next.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.8",