eslint-plugin-react-hooks-extra 1.48.1 → 1.48.2-beta.2

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
@@ -52,7 +52,7 @@ var rules = {
52
52
 
53
53
  // package.json
54
54
  var name2 = "eslint-plugin-react-hooks-extra";
55
- var version = "1.48.1";
55
+ var version = "1.48.2-beta.2";
56
56
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("hooks-extra"));
57
57
  function isFromHookCall(context, name3, settings, predicate = eff.constTrue) {
58
58
  const hookAlias = settings.additionalHooks[name3] ?? [];
@@ -299,7 +299,7 @@ function useNoDirectSetStateInUseEffect(context, options) {
299
299
  const setStateCalls = getSetStateCalls(name3, context.sourceCode.getScope(callee));
300
300
  for (const setStateCall of setStateCalls) {
301
301
  onViolation(context, setStateCall, {
302
- name: AST__namespace.stringify(setStateCall, (n) => context.sourceCode.getText(n))
302
+ name: AST__namespace.toString(setStateCall, (n) => context.sourceCode.getText(n))
303
303
  });
304
304
  }
305
305
  }
@@ -307,7 +307,7 @@ function useNoDirectSetStateInUseEffect(context, options) {
307
307
  const setStateCalls = getSetStateCalls(id.name, context.sourceCode.getScope(id));
308
308
  for (const setStateCall of setStateCalls) {
309
309
  onViolation(context, setStateCall, {
310
- name: AST__namespace.stringify(setStateCall, (n) => context.sourceCode.getText(n))
310
+ name: AST__namespace.toString(setStateCall, (n) => context.sourceCode.getText(n))
311
311
  });
312
312
  }
313
313
  }
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ var rules = {
28
28
 
29
29
  // package.json
30
30
  var name2 = "eslint-plugin-react-hooks-extra";
31
- var version = "1.48.1";
31
+ var version = "1.48.2-beta.2";
32
32
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("hooks-extra"));
33
33
  function isFromHookCall(context, name3, settings, predicate = constTrue) {
34
34
  const hookAlias = settings.additionalHooks[name3] ?? [];
@@ -275,7 +275,7 @@ function useNoDirectSetStateInUseEffect(context, options) {
275
275
  const setStateCalls = getSetStateCalls(name3, context.sourceCode.getScope(callee));
276
276
  for (const setStateCall of setStateCalls) {
277
277
  onViolation(context, setStateCall, {
278
- name: AST.stringify(setStateCall, (n) => context.sourceCode.getText(n))
278
+ name: AST.toString(setStateCall, (n) => context.sourceCode.getText(n))
279
279
  });
280
280
  }
281
281
  }
@@ -283,7 +283,7 @@ function useNoDirectSetStateInUseEffect(context, options) {
283
283
  const setStateCalls = getSetStateCalls(id.name, context.sourceCode.getScope(id));
284
284
  for (const setStateCall of setStateCalls) {
285
285
  onViolation(context, setStateCall, {
286
- name: AST.stringify(setStateCall, (n) => context.sourceCode.getText(n))
286
+ name: AST.toString(setStateCall, (n) => context.sourceCode.getText(n))
287
287
  });
288
288
  }
289
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "1.48.1",
3
+ "version": "1.48.2-beta.2",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -50,12 +50,12 @@
50
50
  "@typescript-eslint/utils": "^8.30.1",
51
51
  "string-ts": "^2.2.1",
52
52
  "ts-pattern": "^5.7.0",
53
- "@eslint-react/ast": "1.48.1",
54
- "@eslint-react/core": "1.48.1",
55
- "@eslint-react/eff": "1.48.1",
56
- "@eslint-react/kit": "1.48.1",
57
- "@eslint-react/shared": "1.48.1",
58
- "@eslint-react/var": "1.48.1"
53
+ "@eslint-react/ast": "1.48.2-beta.2",
54
+ "@eslint-react/core": "1.48.2-beta.2",
55
+ "@eslint-react/eff": "1.48.2-beta.2",
56
+ "@eslint-react/shared": "1.48.2-beta.2",
57
+ "@eslint-react/kit": "1.48.2-beta.2",
58
+ "@eslint-react/var": "1.48.2-beta.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.1.2",