eslint-plugin-react-web-api 2.0.0-next.177 → 2.0.0-next.179

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 +6 -5
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -10,17 +10,18 @@ import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from "@typescript-eslint/types";
10
10
 
11
11
  //#region rolldown:runtime
12
12
  var __defProp = Object.defineProperty;
13
- var __export = (target, all) => {
13
+ var __export = (all) => {
14
+ let target = {};
14
15
  for (var name$2 in all) __defProp(target, name$2, {
15
16
  get: all[name$2],
16
17
  enumerable: true
17
18
  });
19
+ return target;
18
20
  };
19
21
 
20
22
  //#endregion
21
23
  //#region src/configs/recommended.ts
22
- var recommended_exports = {};
23
- __export(recommended_exports, {
24
+ var recommended_exports = __export({
24
25
  name: () => name$1,
25
26
  rules: () => rules,
26
27
  settings: () => settings
@@ -37,7 +38,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
37
38
  //#endregion
38
39
  //#region package.json
39
40
  var name = "eslint-plugin-react-web-api";
40
- var version = "2.0.0-next.177";
41
+ var version = "2.0.0-next.179";
41
42
 
42
43
  //#endregion
43
44
  //#region src/utils/create-rule.ts
@@ -50,7 +51,7 @@ function getPhaseKindOfFunction(node) {
50
51
  }
51
52
  function isFunctionOfUseEffectSetup(node) {
52
53
  if (node == null) return false;
53
- return node.parent?.type === AST_NODE_TYPES$1.CallExpression && node.parent.callee !== node && node.parent.callee.type === AST_NODE_TYPES$1.Identifier && node.parent.arguments.at(0) === node && ER.isUseEffectLikeCall(node.parent);
54
+ return node.parent?.type === AST_NODE_TYPES$1.CallExpression && node.parent.arguments.at(0) === node && ER.isUseEffectLikeCall(node.parent);
54
55
  }
55
56
  function isFunctionOfUseEffectCleanup(node) {
56
57
  if (node == null) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "2.0.0-next.177",
3
+ "version": "2.0.0-next.179",
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.43.0",
41
41
  "string-ts": "^2.2.1",
42
42
  "ts-pattern": "^5.8.0",
43
- "@eslint-react/ast": "2.0.0-next.177",
44
- "@eslint-react/core": "2.0.0-next.177",
45
- "@eslint-react/eff": "2.0.0-next.177",
46
- "@eslint-react/shared": "2.0.0-next.177",
47
- "@eslint-react/var": "2.0.0-next.177",
48
- "@eslint-react/kit": "2.0.0-next.177"
43
+ "@eslint-react/core": "2.0.0-next.179",
44
+ "@eslint-react/ast": "2.0.0-next.179",
45
+ "@eslint-react/eff": "2.0.0-next.179",
46
+ "@eslint-react/kit": "2.0.0-next.179",
47
+ "@eslint-react/shared": "2.0.0-next.179",
48
+ "@eslint-react/var": "2.0.0-next.179"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/react": "^19.1.12",