eslint-plugin-react-x 2.4.1-beta.3 → 2.4.1-beta.5

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 +9 -10
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ var __exportAll = (all, symbols) => {
34
34
  //#endregion
35
35
  //#region package.json
36
36
  var name$6 = "eslint-plugin-react-x";
37
- var version = "2.4.1-beta.3";
37
+ var version = "2.4.1-beta.5";
38
38
 
39
39
  //#endregion
40
40
  //#region src/utils/create-rule.ts
@@ -217,7 +217,7 @@ const RULE_NAME$60 = "jsx-no-comment-textnodes";
217
217
  var jsx_no_comment_textnodes_default = createRule({
218
218
  meta: {
219
219
  type: "problem",
220
- docs: { description: "Prevents comments from being inserted as text nodes." },
220
+ docs: { description: "Prevents comment strings (e.g. beginning with '//' or '/*') from being accidentally inserted into the JSX element's textnodes." },
221
221
  messages: { jsxNoCommentTextnodes: "Possible misused comment in text node. Comments inside children section of tag should be placed inside braces." },
222
222
  schema: []
223
223
  },
@@ -314,7 +314,7 @@ const RULE_NAME$57 = "jsx-no-undef";
314
314
  var jsx_no_undef_default = createRule({
315
315
  meta: {
316
316
  type: "problem",
317
- docs: { description: "Disallow undefined variables in JSX." },
317
+ docs: { description: "Prevents using variables in JSX that are not defined in the scope." },
318
318
  messages: { jsxNoUndef: "JSX variable '{{name}}' is not defined." },
319
319
  schema: []
320
320
  },
@@ -717,7 +717,7 @@ const RULE_NAME$50 = "no-children-count";
717
717
  var no_children_count_default = createRule({
718
718
  meta: {
719
719
  type: "problem",
720
- docs: { description: "Disallow 'Children.count'." },
720
+ docs: { description: "Disallow the use of 'Children.count' from the 'react' package." },
721
721
  messages: { noChildrenCount: "Using 'Children.count' is uncommon and can lead to fragile code. Use alternatives instead." },
722
722
  schema: []
723
723
  },
@@ -740,7 +740,7 @@ const RULE_NAME$49 = "no-children-for-each";
740
740
  var no_children_for_each_default = createRule({
741
741
  meta: {
742
742
  type: "problem",
743
- docs: { description: "Disallow 'Children.forEach'." },
743
+ docs: { description: "Disallow the use of 'Children.forEach' from the 'react' package." },
744
744
  messages: { noChildrenForEach: "Using 'Children.forEach' is uncommon and can lead to fragile code. Use alternatives instead." },
745
745
  schema: []
746
746
  },
@@ -763,7 +763,7 @@ const RULE_NAME$48 = "no-children-map";
763
763
  var no_children_map_default = createRule({
764
764
  meta: {
765
765
  type: "problem",
766
- docs: { description: "Disallow 'Children.map'." },
766
+ docs: { description: "Disallow the use of 'Children.map' from the 'react' package." },
767
767
  messages: { noChildrenMap: "Using 'Children.map' is uncommon and can lead to fragile code. Use alternatives instead." },
768
768
  schema: []
769
769
  },
@@ -786,7 +786,7 @@ const RULE_NAME$47 = "no-children-only";
786
786
  var no_children_only_default = createRule({
787
787
  meta: {
788
788
  type: "problem",
789
- docs: { description: "Disallow 'Children.only'." },
789
+ docs: { description: "Disallow the use of 'Children.only' from the 'react' package." },
790
790
  messages: { noChildrenOnly: "Using 'Children.only' is uncommon and can lead to fragile code. Use alternatives instead." },
791
791
  schema: []
792
792
  },
@@ -833,7 +833,7 @@ const RULE_NAME$45 = "no-children-to-array";
833
833
  var no_children_to_array_default = createRule({
834
834
  meta: {
835
835
  type: "problem",
836
- docs: { description: "Disallow 'Children.toArray'." },
836
+ docs: { description: "Disallow the use of 'Children.toArray' from the 'react' package." },
837
837
  messages: { noChildrenToArray: "Using 'Children.toArray' is uncommon and can lead to fragile code. Use alternatives instead." },
838
838
  schema: []
839
839
  },
@@ -1644,8 +1644,7 @@ function create$28(context) {
1644
1644
  }
1645
1645
  function isDevelopmentOnlyCheck(node) {
1646
1646
  if (node.type !== AST_NODE_TYPES.IfStatement) return false;
1647
- if (AST.isProcessEnvNodeEnvCompare(node.test, "!==", "production")) return true;
1648
- return false;
1647
+ return AST.isProcessEnvNodeEnvCompare(node.test, "!==", "production");
1649
1648
  }
1650
1649
 
1651
1650
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "2.4.1-beta.3",
3
+ "version": "2.4.1-beta.5",
4
4
  "description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -46,11 +46,11 @@
46
46
  "string-ts": "^2.3.1",
47
47
  "ts-api-utils": "^2.1.0",
48
48
  "ts-pattern": "^5.9.0",
49
- "@eslint-react/core": "2.4.1-beta.3",
50
- "@eslint-react/ast": "2.4.1-beta.3",
51
- "@eslint-react/eff": "2.4.1-beta.3",
52
- "@eslint-react/shared": "2.4.1-beta.3",
53
- "@eslint-react/var": "2.4.1-beta.3"
49
+ "@eslint-react/ast": "2.4.1-beta.5",
50
+ "@eslint-react/core": "2.4.1-beta.5",
51
+ "@eslint-react/shared": "2.4.1-beta.5",
52
+ "@eslint-react/eff": "2.4.1-beta.5",
53
+ "@eslint-react/var": "2.4.1-beta.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.7",