eslint-plugin-react-x 5.13.0 → 5.13.1

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
@@ -144,7 +144,7 @@ const rules$6 = {
144
144
  //#endregion
145
145
  //#region package.json
146
146
  var name$6 = "eslint-plugin-react-x";
147
- var version = "5.13.0";
147
+ var version = "5.13.1";
148
148
 
149
149
  //#endregion
150
150
  //#region src/utils/create-rule.ts
@@ -4360,9 +4360,9 @@ var refs_default = createRule({
4360
4360
  docs: { description: "Validates correct usage of refs by checking that 'ref.current' is not read or written during render." },
4361
4361
  messages: {
4362
4362
  duplicateRefInit: "Ref is initialized more than once during render. Only a single 'if (ref.current == null)' initialization is allowed; move any additional initialization into an effect or event handler.",
4363
- readDuringRender: "Do not read 'ref.current' during render. Refs are not available during rendering and their values may be stale or inconsistent. Move this read into an effect or event handler.",
4364
- refPassedToFunction: "Passing a ref to a function may cause its value to be read during render. Pass 'ref.current' instead if the function only needs the value, or move the call into an effect.",
4365
- writeDuringRender: "Do not write to 'ref.current' during render. Refs should only be mutated in effects or event handlers. Move this write into an effect or event handler."
4363
+ readDuringRender: "Cannot access refs during render",
4364
+ refPassedToFunction: "Passing a ref to a function may read its value during render",
4365
+ writeDuringRender: "Cannot update ref during render"
4366
4366
  },
4367
4367
  schema: []
4368
4368
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "5.13.0",
3
+ "version": "5.13.1",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -45,12 +45,12 @@
45
45
  "string-ts": "^2.3.1",
46
46
  "ts-api-utils": "^2.5.0",
47
47
  "ts-pattern": "^5.9.0",
48
- "@eslint-react/core": "5.13.0",
49
- "@eslint-react/ast": "5.13.0",
50
- "@eslint-react/eslint": "5.13.0",
51
- "@eslint-react/var": "5.13.0",
52
- "@eslint-react/jsx": "5.13.0",
53
- "@eslint-react/shared": "5.13.0"
48
+ "@eslint-react/ast": "5.13.1",
49
+ "@eslint-react/core": "5.13.1",
50
+ "@eslint-react/eslint": "5.13.1",
51
+ "@eslint-react/var": "5.13.1",
52
+ "@eslint-react/shared": "5.13.1",
53
+ "@eslint-react/jsx": "5.13.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.17",