eslint-plugin-react-x 1.38.0-next.5 → 1.38.0-next.6

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/dist/index.d.mts CHANGED
@@ -1,8 +1,6 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
2
  import { RulePreset } from '@eslint-react/kit';
3
3
 
4
- type MessageID$1 = "noNestedComponentDefinition" | "noNestedComponentDefinitionInProps";
5
-
6
4
  type MessageID = "missingKey" | "unexpectedFragmentSyntax";
7
5
 
8
6
  declare const _default: {
@@ -44,7 +42,7 @@ declare const _default: {
44
42
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
45
43
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
46
44
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
47
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
45
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
48
46
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
49
47
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
50
48
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -73,7 +71,7 @@ declare const _default: {
73
71
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
74
72
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
75
73
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
76
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
74
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
77
75
  };
78
76
  };
79
77
  };
@@ -121,7 +119,7 @@ declare const _default: {
121
119
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
122
120
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
123
121
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
124
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
122
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
125
123
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
126
124
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
127
125
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -150,7 +148,7 @@ declare const _default: {
150
148
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
151
149
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
152
150
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
153
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
151
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
154
152
  };
155
153
  };
156
154
  };
@@ -198,7 +196,7 @@ declare const _default: {
198
196
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
199
197
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
200
198
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
201
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
199
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
202
200
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
203
201
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
204
202
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -227,7 +225,7 @@ declare const _default: {
227
225
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
228
226
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
229
227
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
230
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
228
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
231
229
  };
232
230
  };
233
231
  };
@@ -273,7 +271,7 @@ declare const _default: {
273
271
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
274
272
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
275
273
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
276
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
274
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
277
275
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
278
276
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
279
277
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -302,7 +300,7 @@ declare const _default: {
302
300
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
303
301
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
304
302
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
305
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
303
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
306
304
  };
307
305
  };
308
306
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
2
  import { RulePreset } from '@eslint-react/kit';
3
3
 
4
- type MessageID$1 = "noNestedComponentDefinition" | "noNestedComponentDefinitionInProps";
5
-
6
4
  type MessageID = "missingKey" | "unexpectedFragmentSyntax";
7
5
 
8
6
  declare const _default: {
@@ -44,7 +42,7 @@ declare const _default: {
44
42
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
45
43
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
46
44
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
47
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
45
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
48
46
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
49
47
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
50
48
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -73,7 +71,7 @@ declare const _default: {
73
71
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
74
72
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
75
73
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
76
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
74
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
77
75
  };
78
76
  };
79
77
  };
@@ -121,7 +119,7 @@ declare const _default: {
121
119
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
122
120
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
123
121
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
124
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
122
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
125
123
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
126
124
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
127
125
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -150,7 +148,7 @@ declare const _default: {
150
148
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
151
149
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
152
150
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
153
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
151
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
154
152
  };
155
153
  };
156
154
  };
@@ -198,7 +196,7 @@ declare const _default: {
198
196
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
199
197
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
200
198
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
201
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
199
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
202
200
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
203
201
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
204
202
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -227,7 +225,7 @@ declare const _default: {
227
225
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
228
226
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
229
227
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
230
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
228
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
231
229
  };
232
230
  };
233
231
  };
@@ -273,7 +271,7 @@ declare const _default: {
273
271
  readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
274
272
  readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
275
273
  readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
276
- readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
274
+ readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
277
275
  readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
278
276
  readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
279
277
  readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
@@ -302,7 +300,7 @@ declare const _default: {
302
300
  readonly "jsx-no-duplicate-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateJsxProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
303
301
  readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"useJsxVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
304
302
  readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
305
- readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
303
+ readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
306
304
  };
307
305
  };
308
306
 
package/dist/index.js CHANGED
@@ -137,7 +137,7 @@ var settings3 = {
137
137
 
138
138
  // package.json
139
139
  var name4 = "eslint-plugin-react-x";
140
- var version = "1.38.0-next.5";
140
+ var version = "1.38.0-next.6";
141
141
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
142
142
 
143
143
  // src/rules/avoid-shorthand-boolean.ts
@@ -1859,8 +1859,7 @@ var no_nested_component_definitions_default = createRule({
1859
1859
  [Symbol.for("rule_features")]: RULE_FEATURES30
1860
1860
  },
1861
1861
  messages: {
1862
- noNestedComponentDefinition: "Do not nest component definitions inside other components. Move it to the top level.",
1863
- noNestedComponentDefinitionInProps: "Do not nest component definitions inside props. Move it to the top level or pass it as a prop."
1862
+ noNestedComponentDefinitions: "Do not nest component definitions inside other components or props. {{suggestion}}"
1864
1863
  },
1865
1864
  schema: []
1866
1865
  },
@@ -1894,10 +1893,11 @@ function create30(context) {
1894
1893
  if (isInsideJSXAttributeValue(component)) {
1895
1894
  if (!core.isDeclaredInRenderPropLoose(component)) {
1896
1895
  context.report({
1897
- messageId: "noNestedComponentDefinitionInProps",
1896
+ messageId: "noNestedComponentDefinitions",
1898
1897
  node: component,
1899
1898
  data: {
1900
- name: name5
1899
+ name: name5,
1900
+ suggestion: "Move it to the top level or pass it as a prop."
1901
1901
  }
1902
1902
  });
1903
1903
  }
@@ -1905,10 +1905,11 @@ function create30(context) {
1905
1905
  }
1906
1906
  if (isInsideCreateElementProps(context, component)) {
1907
1907
  context.report({
1908
- messageId: "noNestedComponentDefinitionInProps",
1908
+ messageId: "noNestedComponentDefinitions",
1909
1909
  node: component,
1910
1910
  data: {
1911
- name: name5
1911
+ name: name5,
1912
+ suggestion: "Move it to the top level or pass it as a prop."
1912
1913
  }
1913
1914
  });
1914
1915
  continue;
@@ -1916,20 +1917,22 @@ function create30(context) {
1916
1917
  const parentComponent = AST11__namespace.findParentNode(component, isFunctionComponent);
1917
1918
  if (parentComponent != null && !core.isDirectValueOfRenderPropertyLoose(parentComponent)) {
1918
1919
  context.report({
1919
- messageId: component.parent.type === types.AST_NODE_TYPES.Property ? "noNestedComponentDefinitionInProps" : "noNestedComponentDefinition",
1920
+ messageId: "noNestedComponentDefinitions",
1920
1921
  node: component,
1921
1922
  data: {
1922
- name: name5
1923
+ name: name5,
1924
+ suggestion: component.parent.type === types.AST_NODE_TYPES.Property ? "Move it to the top level or pass it as a prop." : "Move it to the top level."
1923
1925
  }
1924
1926
  });
1925
1927
  continue;
1926
1928
  }
1927
1929
  if (core.isInsideRenderMethod(component)) {
1928
1930
  context.report({
1929
- messageId: "noNestedComponentDefinition",
1931
+ messageId: "noNestedComponentDefinitions",
1930
1932
  node: component,
1931
1933
  data: {
1932
- name: name5
1934
+ name: name5,
1935
+ suggestion: "Move it to the top level."
1933
1936
  }
1934
1937
  });
1935
1938
  }
@@ -1939,10 +1942,11 @@ function create30(context) {
1939
1942
  continue;
1940
1943
  }
1941
1944
  context.report({
1942
- messageId: "noNestedComponentDefinition",
1945
+ messageId: "noNestedComponentDefinitions",
1943
1946
  node: component,
1944
1947
  data: {
1945
- name: name5
1948
+ name: name5,
1949
+ suggestion: component.parent.type === types.AST_NODE_TYPES.Property ? "Move it to the top level or pass it as a prop." : "Move it to the top level."
1946
1950
  }
1947
1951
  });
1948
1952
  }
package/dist/index.mjs CHANGED
@@ -110,7 +110,7 @@ var settings3 = {
110
110
 
111
111
  // package.json
112
112
  var name4 = "eslint-plugin-react-x";
113
- var version = "1.38.0-next.5";
113
+ var version = "1.38.0-next.6";
114
114
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
115
115
 
116
116
  // src/rules/avoid-shorthand-boolean.ts
@@ -1832,8 +1832,7 @@ var no_nested_component_definitions_default = createRule({
1832
1832
  [Symbol.for("rule_features")]: RULE_FEATURES30
1833
1833
  },
1834
1834
  messages: {
1835
- noNestedComponentDefinition: "Do not nest component definitions inside other components. Move it to the top level.",
1836
- noNestedComponentDefinitionInProps: "Do not nest component definitions inside props. Move it to the top level or pass it as a prop."
1835
+ noNestedComponentDefinitions: "Do not nest component definitions inside other components or props. {{suggestion}}"
1837
1836
  },
1838
1837
  schema: []
1839
1838
  },
@@ -1867,10 +1866,11 @@ function create30(context) {
1867
1866
  if (isInsideJSXAttributeValue(component)) {
1868
1867
  if (!isDeclaredInRenderPropLoose(component)) {
1869
1868
  context.report({
1870
- messageId: "noNestedComponentDefinitionInProps",
1869
+ messageId: "noNestedComponentDefinitions",
1871
1870
  node: component,
1872
1871
  data: {
1873
- name: name5
1872
+ name: name5,
1873
+ suggestion: "Move it to the top level or pass it as a prop."
1874
1874
  }
1875
1875
  });
1876
1876
  }
@@ -1878,10 +1878,11 @@ function create30(context) {
1878
1878
  }
1879
1879
  if (isInsideCreateElementProps(context, component)) {
1880
1880
  context.report({
1881
- messageId: "noNestedComponentDefinitionInProps",
1881
+ messageId: "noNestedComponentDefinitions",
1882
1882
  node: component,
1883
1883
  data: {
1884
- name: name5
1884
+ name: name5,
1885
+ suggestion: "Move it to the top level or pass it as a prop."
1885
1886
  }
1886
1887
  });
1887
1888
  continue;
@@ -1889,20 +1890,22 @@ function create30(context) {
1889
1890
  const parentComponent = AST11.findParentNode(component, isFunctionComponent);
1890
1891
  if (parentComponent != null && !isDirectValueOfRenderPropertyLoose(parentComponent)) {
1891
1892
  context.report({
1892
- messageId: component.parent.type === AST_NODE_TYPES.Property ? "noNestedComponentDefinitionInProps" : "noNestedComponentDefinition",
1893
+ messageId: "noNestedComponentDefinitions",
1893
1894
  node: component,
1894
1895
  data: {
1895
- name: name5
1896
+ name: name5,
1897
+ suggestion: component.parent.type === AST_NODE_TYPES.Property ? "Move it to the top level or pass it as a prop." : "Move it to the top level."
1896
1898
  }
1897
1899
  });
1898
1900
  continue;
1899
1901
  }
1900
1902
  if (isInsideRenderMethod(component)) {
1901
1903
  context.report({
1902
- messageId: "noNestedComponentDefinition",
1904
+ messageId: "noNestedComponentDefinitions",
1903
1905
  node: component,
1904
1906
  data: {
1905
- name: name5
1907
+ name: name5,
1908
+ suggestion: "Move it to the top level."
1906
1909
  }
1907
1910
  });
1908
1911
  }
@@ -1912,10 +1915,11 @@ function create30(context) {
1912
1915
  continue;
1913
1916
  }
1914
1917
  context.report({
1915
- messageId: "noNestedComponentDefinition",
1918
+ messageId: "noNestedComponentDefinitions",
1916
1919
  node: component,
1917
1920
  data: {
1918
- name: name5
1921
+ name: name5,
1922
+ suggestion: component.parent.type === AST_NODE_TYPES.Property ? "Move it to the top level or pass it as a prop." : "Move it to the top level."
1919
1923
  }
1920
1924
  });
1921
1925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.38.0-next.5",
3
+ "version": "1.38.0-next.6",
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",
@@ -50,13 +50,13 @@
50
50
  "is-immutable-type": "^5.0.1",
51
51
  "string-ts": "^2.2.1",
52
52
  "ts-pattern": "^5.6.2",
53
- "@eslint-react/ast": "1.38.0-next.5",
54
- "@eslint-react/eff": "1.38.0-next.5",
55
- "@eslint-react/core": "1.38.0-next.5",
56
- "@eslint-react/jsx": "1.38.0-next.5",
57
- "@eslint-react/kit": "1.38.0-next.5",
58
- "@eslint-react/var": "1.38.0-next.5",
59
- "@eslint-react/shared": "1.38.0-next.5"
53
+ "@eslint-react/ast": "1.38.0-next.6",
54
+ "@eslint-react/core": "1.38.0-next.6",
55
+ "@eslint-react/eff": "1.38.0-next.6",
56
+ "@eslint-react/jsx": "1.38.0-next.6",
57
+ "@eslint-react/kit": "1.38.0-next.6",
58
+ "@eslint-react/shared": "1.38.0-next.6",
59
+ "@eslint-react/var": "1.38.0-next.6"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.0.12",