eslint-plugin-react-debug 5.2.4-next.3 → 5.2.4-next.4

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 +4 -4
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@ import { DEFAULT_ESLINT_REACT_SETTINGS, getSettingsFromContext } from "@eslint-r
2
2
  import * as core from "@eslint-react/core";
3
3
  import { isUseRefCall } from "@eslint-react/core";
4
4
  import { merge } from "@eslint-react/eslint";
5
- import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
5
+ import { ESLintUtils } from "@typescript-eslint/utils";
6
+ import { AST_NODE_TYPES } from "@typescript-eslint/types";
6
7
  import { findVariable } from "@typescript-eslint/utils/ast-utils";
7
8
  import { JsxEmit, getElementFullType, getJsxConfig, isFragmentElement } from "@eslint-react/jsx";
8
- import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from "@typescript-eslint/types";
9
9
  import { P, match } from "ts-pattern";
10
10
 
11
11
  //#region \0rolldown/runtime.js
@@ -27,7 +27,7 @@ var __exportAll = (all, no_symbols) => {
27
27
  //#endregion
28
28
  //#region package.json
29
29
  var name$1 = "eslint-plugin-react-debug";
30
- var version = "5.2.4-next.3";
30
+ var version = "5.2.4-next.4";
31
31
 
32
32
  //#endregion
33
33
  //#region src/utils/create-rule.ts
@@ -396,7 +396,7 @@ function create(context) {
396
396
  function getReportDescriptor(context) {
397
397
  return (node) => ({
398
398
  data: { json: stringify({
399
- kind: match(node).with({ type: AST_NODE_TYPES$1.JSXElement }, (n) => isFragmentElement(n, jsxConfig.jsxFragmentFactory) ? "fragment" : "element").with({ type: AST_NODE_TYPES$1.JSXFragment }, () => "fragment").exhaustive(),
399
+ kind: match(node).with({ type: AST_NODE_TYPES.JSXElement }, (n) => isFragmentElement(n, jsxConfig.jsxFragmentFactory) ? "fragment" : "element").with({ type: AST_NODE_TYPES.JSXFragment }, () => "fragment").exhaustive(),
400
400
  type: getElementFullType(node),
401
401
  jsx: match(jsxConfig.jsx).with(JsxEmit.None, () => "none").with(JsxEmit.ReactJSX, () => "react-jsx").with(JsxEmit.ReactJSXDev, () => "react-jsx-dev").with(JsxEmit.React, () => "react").with(JsxEmit.ReactNative, () => "react-native").with(JsxEmit.Preserve, () => "preserve").otherwise(() => "unknown"),
402
402
  jsxFactory: jsxConfig.jsxFactory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "5.2.4-next.3",
3
+ "version": "5.2.4-next.4",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,12 +43,12 @@
43
43
  "@typescript-eslint/types": "^8.58.2",
44
44
  "@typescript-eslint/utils": "^8.58.2",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/core": "5.2.4-next.3",
47
- "@eslint-react/ast": "5.2.4-next.3",
48
- "@eslint-react/eslint": "5.2.4-next.3",
49
- "@eslint-react/jsx": "5.2.4-next.3",
50
- "@eslint-react/var": "5.2.4-next.3",
51
- "@eslint-react/shared": "5.2.4-next.3"
46
+ "@eslint-react/ast": "5.2.4-next.4",
47
+ "@eslint-react/core": "5.2.4-next.4",
48
+ "@eslint-react/eslint": "5.2.4-next.4",
49
+ "@eslint-react/jsx": "5.2.4-next.4",
50
+ "@eslint-react/var": "5.2.4-next.4",
51
+ "@eslint-react/shared": "5.2.4-next.4"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.14",