eslint-plugin-react-x 2.4.1-beta.11 → 2.4.1-beta.12

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 +19 -19
  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.11";
37
+ var version = "2.4.1-beta.12";
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 comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into the JSX element's textnodes." },
220
+ docs: { description: "Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes." },
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
  },
@@ -443,7 +443,7 @@ const RULE_NAME$54 = "jsx-uses-react";
443
443
  var jsx_uses_react_default = createRule({
444
444
  meta: {
445
445
  type: "problem",
446
- docs: { description: "Marks React variables as used when JSX is used." },
446
+ docs: { description: "Marks React variables as used when JSX is present." },
447
447
  messages: { jsxUsesReact: "Marked {{name}} as used." },
448
448
  schema: []
449
449
  },
@@ -639,7 +639,7 @@ function getIdentifiersFromBinaryExpression(side) {
639
639
  var no_array_index_key_default = createRule({
640
640
  meta: {
641
641
  type: "problem",
642
- docs: { description: "Disallows an item's index in the array as its key." },
642
+ docs: { description: "Disallows using an item's index in the array as its key." },
643
643
  messages: { noArrayIndexKey: "Do not use item index in the array as its key." },
644
644
  schema: []
645
645
  },
@@ -911,7 +911,7 @@ const RULE_NAME$42 = "no-component-will-mount";
911
911
  var no_component_will_mount_default = createRule({
912
912
  meta: {
913
913
  type: "problem",
914
- docs: { description: "Replaces usages of 'componentWillMount' with 'UNSAFE_componentWillMount'." },
914
+ docs: { description: "Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'." },
915
915
  fixable: "code",
916
916
  messages: { noComponentWillMount: "[Deprecated] Use 'UNSAFE_componentWillMount' instead." },
917
917
  schema: []
@@ -947,7 +947,7 @@ const RULE_NAME$41 = "no-component-will-receive-props";
947
947
  var no_component_will_receive_props_default = createRule({
948
948
  meta: {
949
949
  type: "problem",
950
- docs: { description: "Replaces usages of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'." },
950
+ docs: { description: "Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'." },
951
951
  fixable: "code",
952
952
  messages: { noComponentWillReceiveProps: "[Deprecated] Use 'UNSAFE_componentWillReceiveProps' instead." },
953
953
  schema: []
@@ -983,7 +983,7 @@ const RULE_NAME$40 = "no-component-will-update";
983
983
  var no_component_will_update_default = createRule({
984
984
  meta: {
985
985
  type: "problem",
986
- docs: { description: "Replaces usages of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'." },
986
+ docs: { description: "Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'." },
987
987
  fixable: "code",
988
988
  messages: { noComponentWillUpdate: "[Deprecated] Use 'UNSAFE_componentWillUpdate' instead." },
989
989
  schema: []
@@ -1019,7 +1019,7 @@ const RULE_NAME$39 = "no-context-provider";
1019
1019
  var no_context_provider_default = createRule({
1020
1020
  meta: {
1021
1021
  type: "problem",
1022
- docs: { description: "Replaces usages of '<Context.Provider>' with '<Context>'." },
1022
+ docs: { description: "Replaces usage of '<Context.Provider>' with '<Context>'." },
1023
1023
  fixable: "code",
1024
1024
  messages: { noContextProvider: "In React 19, you can render '<Context>' as a provider instead of '<Context.Provider>'." },
1025
1025
  schema: []
@@ -1210,7 +1210,7 @@ const RULE_NAME$34 = "no-forward-ref";
1210
1210
  var no_forward_ref_default = createRule({
1211
1211
  meta: {
1212
1212
  type: "problem",
1213
- docs: { description: "Replaces usages of 'forwardRef' with passing 'ref' as a prop." },
1213
+ docs: { description: "Replaces usage of 'forwardRef' with passing 'ref' as a prop." },
1214
1214
  fixable: "code",
1215
1215
  messages: { noForwardRef: "In React 19, 'forwardRef' is no longer necessary. Pass 'ref' as a prop instead." },
1216
1216
  schema: []
@@ -1892,8 +1892,8 @@ const RULE_NAME$23 = "no-set-state-in-component-did-mount";
1892
1892
  var no_set_state_in_component_did_mount_default = createRule({
1893
1893
  meta: {
1894
1894
  type: "problem",
1895
- docs: { description: "Disallows calling 'this.setState' in 'componentDidMount' outside of functions such as callbacks." },
1896
- messages: { noSetStateInComponentDidMount: "Do not call `this.setState` in `componentDidMount` outside of functions such as callbacks." },
1895
+ docs: { description: "Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks." },
1896
+ messages: { noSetStateInComponentDidMount: "Do not call `this.setState` in `componentDidMount` outside functions such as callbacks." },
1897
1897
  schema: []
1898
1898
  },
1899
1899
  name: RULE_NAME$23,
@@ -1922,8 +1922,8 @@ const RULE_NAME$22 = "no-set-state-in-component-did-update";
1922
1922
  var no_set_state_in_component_did_update_default = createRule({
1923
1923
  meta: {
1924
1924
  type: "problem",
1925
- docs: { description: "Disallows calling 'this.setState' in 'componentDidUpdate' outside of functions such as callbacks." },
1926
- messages: { noSetStateInComponentDidUpdate: "Do not call `this.setState` in `componentDidUpdate` outside of functions such as callbacks." },
1925
+ docs: { description: "Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks." },
1926
+ messages: { noSetStateInComponentDidUpdate: "Do not call `this.setState` in `componentDidUpdate` outside functions such as callbacks." },
1927
1927
  schema: []
1928
1928
  },
1929
1929
  name: RULE_NAME$22,
@@ -1952,8 +1952,8 @@ const RULE_NAME$21 = "no-set-state-in-component-will-update";
1952
1952
  var no_set_state_in_component_will_update_default = createRule({
1953
1953
  meta: {
1954
1954
  type: "problem",
1955
- docs: { description: "Disallows calling 'this.setState' in 'componentWillUpdate' outside of functions such as callbacks." },
1956
- messages: { noSetStateInComponentWillUpdate: "Do not call `this.setState` in `componentWillUpdate` outside of functions such as callbacks." },
1955
+ docs: { description: "Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks." },
1956
+ messages: { noSetStateInComponentWillUpdate: "Do not call `this.setState` in `componentWillUpdate` outside functions such as callbacks." },
1957
1957
  schema: []
1958
1958
  },
1959
1959
  name: RULE_NAME$21,
@@ -2273,7 +2273,7 @@ const RULE_NAME$15 = "no-unsafe-component-will-mount";
2273
2273
  var no_unsafe_component_will_mount_default = createRule({
2274
2274
  meta: {
2275
2275
  type: "problem",
2276
- docs: { description: "Warns about the usage of 'UNSAFE_componentWillMount' in class components." },
2276
+ docs: { description: "Warns about the use of 'UNSAFE_componentWillMount' in class components." },
2277
2277
  messages: { noUnsafeComponentWillMount: "Do not use 'UNSAFE_componentWillMount'." },
2278
2278
  schema: []
2279
2279
  },
@@ -2304,7 +2304,7 @@ const RULE_NAME$14 = "no-unsafe-component-will-receive-props";
2304
2304
  var no_unsafe_component_will_receive_props_default = createRule({
2305
2305
  meta: {
2306
2306
  type: "problem",
2307
- docs: { description: "Warns about the usage of 'UNSAFE_componentWillReceiveProps' in class components." },
2307
+ docs: { description: "Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components." },
2308
2308
  messages: { noUnsafeComponentWillReceiveProps: "Do not use 'UNSAFE_componentWillReceiveProps'." },
2309
2309
  schema: []
2310
2310
  },
@@ -2335,7 +2335,7 @@ const RULE_NAME$13 = "no-unsafe-component-will-update";
2335
2335
  var no_unsafe_component_will_update_default = createRule({
2336
2336
  meta: {
2337
2337
  type: "problem",
2338
- docs: { description: "Warns about the usage of 'UNSAFE_componentWillUpdate' in class components." },
2338
+ docs: { description: "Warns about the use of 'UNSAFE_componentWillUpdate' in class components." },
2339
2339
  messages: { noUnsafeComponentWillUpdate: "Do not use 'UNSAFE_componentWillUpdate'." },
2340
2340
  schema: []
2341
2341
  },
@@ -2855,7 +2855,7 @@ const RULE_NAME$7 = "no-use-context";
2855
2855
  var no_use_context_default = createRule({
2856
2856
  meta: {
2857
2857
  type: "problem",
2858
- docs: { description: "Replaces usages of 'useContext' with 'use'." },
2858
+ docs: { description: "Replaces usage of 'useContext' with 'use'." },
2859
2859
  fixable: "code",
2860
2860
  messages: { noUseContext: "In React 19, 'use' is preferred over 'useContext' because it is more flexible." },
2861
2861
  schema: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "2.4.1-beta.11",
3
+ "version": "2.4.1-beta.12",
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.3.0",
48
48
  "ts-pattern": "^5.9.0",
49
- "@eslint-react/core": "2.4.1-beta.11",
50
- "@eslint-react/eff": "2.4.1-beta.11",
51
- "@eslint-react/ast": "2.4.1-beta.11",
52
- "@eslint-react/shared": "2.4.1-beta.11",
53
- "@eslint-react/var": "2.4.1-beta.11"
49
+ "@eslint-react/ast": "2.4.1-beta.12",
50
+ "@eslint-react/eff": "2.4.1-beta.12",
51
+ "@eslint-react/shared": "2.4.1-beta.12",
52
+ "@eslint-react/core": "2.4.1-beta.12",
53
+ "@eslint-react/var": "2.4.1-beta.12"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.7",