eslint-plugin-react-x 2.7.4-next.8 → 2.7.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.
package/README.md CHANGED
@@ -45,7 +45,7 @@ export default defineConfig(
45
45
 
46
46
  - `jsx-dollar` - Prevents unnecessary `$` symbols before `JSX` expressions
47
47
  - `jsx-key-before-spread` - Enforces `key` prop placement before spread operators
48
- - `jsx-no-comment-textnodes` - Prevents comments from rendering as text
48
+ - `jsx-no-comment-textnodes` - Prevents comment strings (e.g., beginning with `//` or `/*`) from being accidentally inserted into a JSX element's text nodes
49
49
  - `jsx-no-duplicate-props` - Disallows duplicate `props` in elements
50
50
  - `jsx-no-iife` - Disallows immediately-invoked function expressions in `JSX`
51
51
  - `jsx-no-undef` - Disallows undefined variables in `JSX` elements
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ const rules$7 = {
68
68
  //#endregion
69
69
  //#region package.json
70
70
  var name$6 = "eslint-plugin-react-x";
71
- var version = "2.7.4-next.8";
71
+ var version = "2.7.4";
72
72
 
73
73
  //#endregion
74
74
  //#region src/utils/create-rule.ts
@@ -176,7 +176,7 @@ const RULE_NAME$63 = "jsx-dollar";
176
176
  var jsx_dollar_default = createRule({
177
177
  meta: {
178
178
  type: "problem",
179
- docs: { description: "Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX." },
179
+ docs: { description: "Prevents unnecessary '$' symbols before JSX expressions." },
180
180
  fixable: "code",
181
181
  hasSuggestions: true,
182
182
  messages: {
@@ -234,7 +234,7 @@ const RULE_NAME$62 = "jsx-key-before-spread";
234
234
  var jsx_key_before_spread_default = createRule({
235
235
  meta: {
236
236
  type: "problem",
237
- docs: { description: "Enforces that the 'key' prop is placed before the spread prop in JSX elements when using the new JSX transform." },
237
+ docs: { description: "Enforces 'key' prop placement before spread props." },
238
238
  messages: { jsxKeyBeforeSpread: "The 'key' prop must be placed before any spread props when using the new JSX transform." },
239
239
  schema: []
240
240
  },
@@ -336,8 +336,8 @@ const RULE_NAME$59 = "jsx-no-iife";
336
336
  var jsx_no_iife_default = createRule({
337
337
  meta: {
338
338
  type: "problem",
339
- docs: { description: "Disallows 'IIFE' in JSX." },
340
- messages: { jsxNoIife: "Avoid using IIFE in JSX." },
339
+ docs: { description: "Disallows immediately-invoked function expressions in JSX." },
340
+ messages: { jsxNoIife: "Avoid using immediately-invoked function expressions in JSX." },
341
341
  schema: []
342
342
  },
343
343
  name: RULE_NAME$59,
@@ -403,7 +403,7 @@ const schema$3 = [{
403
403
  var jsx_shorthand_boolean_default = createRule({
404
404
  meta: {
405
405
  type: "problem",
406
- docs: { description: "Enforces the use of shorthand syntax for boolean attributes." },
406
+ docs: { description: "Enforces shorthand syntax for boolean props." },
407
407
  fixable: "code",
408
408
  messages: { jsxShorthandBoolean: "{{message}}" },
409
409
  schema: schema$3
@@ -449,7 +449,7 @@ const schema$2 = [{
449
449
  var jsx_shorthand_fragment_default = createRule({
450
450
  meta: {
451
451
  type: "problem",
452
- docs: { description: "Enforces the use of shorthand syntax for fragments." },
452
+ docs: { description: "Enforces shorthand syntax for fragment elements." },
453
453
  fixable: "code",
454
454
  messages: { jsxShorthandFragment: "{{message}}" },
455
455
  schema: schema$2
@@ -540,7 +540,7 @@ const RULE_NAME$54 = "jsx-uses-vars";
540
540
  var jsx_uses_vars_default = createRule({
541
541
  meta: {
542
542
  type: "problem",
543
- docs: { description: "Marks variables used in JSX elements as used." },
543
+ docs: { description: "Marks JSX element variables as used." },
544
544
  messages: { jsxUsesVars: "An identifier in JSX is marked as used." },
545
545
  schema: []
546
546
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "2.7.4-next.8",
3
+ "version": "2.7.4",
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.4.0",
48
48
  "ts-pattern": "^5.9.0",
49
- "@eslint-react/ast": "2.7.4-next.8",
50
- "@eslint-react/core": "2.7.4-next.8",
51
- "@eslint-react/eff": "2.7.4-next.8",
52
- "@eslint-react/shared": "2.7.4-next.8",
53
- "@eslint-react/var": "2.7.4-next.8"
49
+ "@eslint-react/ast": "2.7.4",
50
+ "@eslint-react/core": "2.7.4",
51
+ "@eslint-react/eff": "2.7.4",
52
+ "@eslint-react/shared": "2.7.4",
53
+ "@eslint-react/var": "2.7.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.9",