eslint-plugin-react-x 1.40.1 → 1.40.2-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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Eva1ent
3
+ Copyright (c) 2023 Rel1cx
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -141,7 +141,7 @@ var settings3 = {
141
141
 
142
142
  // package.json
143
143
  var name4 = "eslint-plugin-react-x";
144
- var version = "1.40.1";
144
+ var version = "1.40.2-beta.0";
145
145
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
146
146
 
147
147
  // src/rules/avoid-shorthand-boolean.ts
@@ -310,7 +310,7 @@ var jsx_uses_react_default = createRule({
310
310
  function create5(context) {
311
311
  const { jsx, jsxFactory, jsxFragmentFactory, reactNamespace } = kit.JsxRuntime.getJsxRuntimeOptionsFromContext(context);
312
312
  const jsxAnnotation = getJsxAnnotation(context);
313
- if (jsx === ts.JsxEmit.ReactJSX || jsx === ts.JsxEmit.ReactJSXDev || jsx === ts.JsxEmit.Preserve) return {};
313
+ if (jsx === ts.JsxEmit.ReactJSX || jsx === ts.JsxEmit.ReactJSXDev) return {};
314
314
  function handleJsxElement(node) {
315
315
  if (jsxAnnotation == null) {
316
316
  context.sourceCode.markVariableAsUsed(reactNamespace, node);
package/dist/index.mjs CHANGED
@@ -113,7 +113,7 @@ var settings3 = {
113
113
 
114
114
  // package.json
115
115
  var name4 = "eslint-plugin-react-x";
116
- var version = "1.40.1";
116
+ var version = "1.40.2-beta.0";
117
117
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
118
118
 
119
119
  // src/rules/avoid-shorthand-boolean.ts
@@ -282,7 +282,7 @@ var jsx_uses_react_default = createRule({
282
282
  function create5(context) {
283
283
  const { jsx, jsxFactory, jsxFragmentFactory, reactNamespace } = JsxRuntime.getJsxRuntimeOptionsFromContext(context);
284
284
  const jsxAnnotation = getJsxAnnotation(context);
285
- if (jsx === JsxEmit.ReactJSX || jsx === JsxEmit.ReactJSXDev || jsx === JsxEmit.Preserve) return {};
285
+ if (jsx === JsxEmit.ReactJSX || jsx === JsxEmit.ReactJSXDev) return {};
286
286
  function handleJsxElement(node) {
287
287
  if (jsxAnnotation == null) {
288
288
  context.sourceCode.markVariableAsUsed(reactNamespace, node);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.40.1",
3
+ "version": "1.40.2-beta.0",
4
4
  "description": "A set of composable linting rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -19,7 +19,7 @@
19
19
  "directory": "packages/plugins/eslint-plugin-react-x"
20
20
  },
21
21
  "license": "MIT",
22
- "author": "Eva1ent<rel1cx@proton.me>",
22
+ "author": "Rel1cx<rel1cx@proton.me>",
23
23
  "sideEffects": false,
24
24
  "exports": {
25
25
  ".": {
@@ -50,13 +50,13 @@
50
50
  "is-immutable-type": "^5.0.1",
51
51
  "string-ts": "^2.2.1",
52
52
  "ts-pattern": "^5.7.0",
53
- "@eslint-react/eff": "1.40.1",
54
- "@eslint-react/jsx": "1.40.1",
55
- "@eslint-react/shared": "1.40.1",
56
- "@eslint-react/core": "1.40.1",
57
- "@eslint-react/kit": "1.40.1",
58
- "@eslint-react/var": "1.40.1",
59
- "@eslint-react/ast": "1.40.1"
53
+ "@eslint-react/ast": "1.40.2-beta.0",
54
+ "@eslint-react/core": "1.40.2-beta.0",
55
+ "@eslint-react/eff": "1.40.2-beta.0",
56
+ "@eslint-react/kit": "1.40.2-beta.0",
57
+ "@eslint-react/shared": "1.40.2-beta.0",
58
+ "@eslint-react/var": "1.40.2-beta.0",
59
+ "@eslint-react/jsx": "1.40.2-beta.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.0.12",