eslint-plugin-react-debug 1.48.4-next.0 → 1.48.5-beta.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.
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ var eff = require('@eslint-react/eff');
7
7
  var kit = require('@eslint-react/kit');
8
8
  var types = require('@typescript-eslint/types');
9
9
  var tsPattern = require('ts-pattern');
10
- var typescript = require('typescript');
11
10
 
12
11
  function _interopNamespace(e) {
13
12
  if (e && e.__esModule) return e;
@@ -56,7 +55,7 @@ var settings = {
56
55
 
57
56
  // package.json
58
57
  var name2 = "eslint-plugin-react-debug";
59
- var version = "1.48.4-next.0";
58
+ var version = "1.48.5-beta.0";
60
59
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("debug"));
61
60
 
62
61
  // src/utils/stringify.ts
@@ -251,6 +250,7 @@ function create4(context) {
251
250
  JSXIdentifier: visitorFunction
252
251
  };
253
252
  }
253
+ var { JsxEmit } = kit.JsxConfig;
254
254
  var RULE_NAME5 = "jsx";
255
255
  var RULE_FEATURES5 = [
256
256
  "DBG"
@@ -286,11 +286,11 @@ function create5(context) {
286
286
  json: stringify({
287
287
  kind: tsPattern.match(node).with({ type: types.AST_NODE_TYPES.JSXElement }, (n) => ER2__namespace.isFragmentElement(context2, n) ? "fragment" : "element").with({ type: types.AST_NODE_TYPES.JSXFragment }, () => "fragment").exhaustive(),
288
288
  type: ER2__namespace.getElementType(context2, node),
289
- jsx: tsPattern.match(jsxConfig.jsx).with(typescript.JsxEmit.None, () => "none").with(typescript.JsxEmit.ReactJSX, () => "react-jsx").with(typescript.JsxEmit.ReactJSXDev, () => "react-jsx-dev").with(typescript.JsxEmit.React, () => "react").with(typescript.JsxEmit.ReactNative, () => "react-native").with(typescript.JsxEmit.Preserve, () => "preserve").otherwise(() => "unknown"),
289
+ jsx: tsPattern.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"),
290
290
  jsxFactory: jsxConfig.jsxFactory,
291
291
  jsxFragmentFactory: jsxConfig.jsxFragmentFactory,
292
292
  jsxImportSource: jsxConfig.jsxImportSource,
293
- jsxRuntime: tsPattern.match(jsxConfig.jsx).with(tsPattern.P.union(typescript.JsxEmit.None, typescript.JsxEmit.ReactJSX, typescript.JsxEmit.ReactJSXDev), () => "automatic").otherwise(() => "classic")
293
+ jsxRuntime: tsPattern.match(jsxConfig.jsx).with(tsPattern.P.union(JsxEmit.None, JsxEmit.ReactJSX, JsxEmit.ReactJSXDev), () => "automatic").otherwise(() => "classic")
294
294
  })
295
295
  }
296
296
  });
package/dist/index.mjs CHANGED
@@ -5,7 +5,6 @@ import { flow } from '@eslint-react/eff';
5
5
  import { JsxConfig, Reporter } from '@eslint-react/kit';
6
6
  import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/types';
7
7
  import { match, P } from 'ts-pattern';
8
- import { JsxEmit } from 'typescript';
9
8
 
10
9
  var __defProp = Object.defineProperty;
11
10
  var __export = (target, all) => {
@@ -34,7 +33,7 @@ var settings = {
34
33
 
35
34
  // package.json
36
35
  var name2 = "eslint-plugin-react-debug";
37
- var version = "1.48.4-next.0";
36
+ var version = "1.48.5-beta.0";
38
37
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("debug"));
39
38
 
40
39
  // src/utils/stringify.ts
@@ -229,6 +228,7 @@ function create4(context) {
229
228
  JSXIdentifier: visitorFunction
230
229
  };
231
230
  }
231
+ var { JsxEmit } = JsxConfig;
232
232
  var RULE_NAME5 = "jsx";
233
233
  var RULE_FEATURES5 = [
234
234
  "DBG"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "1.48.4-next.0",
3
+ "version": "1.48.5-beta.0",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,18 +43,18 @@
43
43
  "./package.json"
44
44
  ],
45
45
  "dependencies": {
46
- "@typescript-eslint/scope-manager": "^8.30.1",
47
- "@typescript-eslint/type-utils": "^8.30.1",
48
- "@typescript-eslint/types": "^8.30.1",
49
- "@typescript-eslint/utils": "^8.30.1",
46
+ "@typescript-eslint/scope-manager": "^8.31.0",
47
+ "@typescript-eslint/type-utils": "^8.31.0",
48
+ "@typescript-eslint/types": "^8.31.0",
49
+ "@typescript-eslint/utils": "^8.31.0",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.7.0",
52
- "@eslint-react/ast": "1.48.4-next.0",
53
- "@eslint-react/eff": "1.48.4-next.0",
54
- "@eslint-react/kit": "1.48.4-next.0",
55
- "@eslint-react/core": "1.48.4-next.0",
56
- "@eslint-react/var": "1.48.4-next.0",
57
- "@eslint-react/shared": "1.48.4-next.0"
52
+ "@eslint-react/core": "1.48.5-beta.0",
53
+ "@eslint-react/eff": "1.48.5-beta.0",
54
+ "@eslint-react/kit": "1.48.5-beta.0",
55
+ "@eslint-react/ast": "1.48.5-beta.0",
56
+ "@eslint-react/shared": "1.48.5-beta.0",
57
+ "@eslint-react/var": "1.48.5-beta.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.1.2",