eslint-plugin-react-x 1.34.0 → 1.34.1-next.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.
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ var settings3 = {
136
136
 
137
137
  // package.json
138
138
  var name4 = "eslint-plugin-react-x";
139
- var version = "1.34.0";
139
+ var version = "1.34.1-next.1";
140
140
  var createRule = shared.createRuleForPlugin("x");
141
141
 
142
142
  // src/rules/avoid-shorthand-boolean.ts
@@ -1077,11 +1077,11 @@ function create16(context) {
1077
1077
  const contextFullName = parts.join(".");
1078
1078
  const contextSelfName = parts.pop();
1079
1079
  if (selfName !== "Provider") return;
1080
+ if (contextSelfName == null) return;
1080
1081
  context.report({
1081
1082
  messageId: "noContextProvider",
1082
1083
  node,
1083
1084
  fix(fixer) {
1084
- if (contextSelfName == null) return null;
1085
1085
  if (!core.isComponentNameLoose(contextSelfName)) return null;
1086
1086
  const openingElement = node.openingElement;
1087
1087
  const closingElement = node.closingElement;
@@ -1919,7 +1919,7 @@ var no_nested_component_definitions_default = createRule({
1919
1919
  meta: {
1920
1920
  type: "problem",
1921
1921
  docs: {
1922
- description: "disallow using unstable nested components",
1922
+ description: "prevents nesting component definitions inside other components",
1923
1923
  [Symbol.for("rule_features")]: RULE_FEATURES30
1924
1924
  },
1925
1925
  messages: {
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ var settings3 = {
109
109
 
110
110
  // package.json
111
111
  var name4 = "eslint-plugin-react-x";
112
- var version = "1.34.0";
112
+ var version = "1.34.1-next.1";
113
113
  var createRule = createRuleForPlugin("x");
114
114
 
115
115
  // src/rules/avoid-shorthand-boolean.ts
@@ -1050,11 +1050,11 @@ function create16(context) {
1050
1050
  const contextFullName = parts.join(".");
1051
1051
  const contextSelfName = parts.pop();
1052
1052
  if (selfName !== "Provider") return;
1053
+ if (contextSelfName == null) return;
1053
1054
  context.report({
1054
1055
  messageId: "noContextProvider",
1055
1056
  node,
1056
1057
  fix(fixer) {
1057
- if (contextSelfName == null) return null;
1058
1058
  if (!isComponentNameLoose(contextSelfName)) return null;
1059
1059
  const openingElement = node.openingElement;
1060
1060
  const closingElement = node.closingElement;
@@ -1892,7 +1892,7 @@ var no_nested_component_definitions_default = createRule({
1892
1892
  meta: {
1893
1893
  type: "problem",
1894
1894
  docs: {
1895
- description: "disallow using unstable nested components",
1895
+ description: "prevents nesting component definitions inside other components",
1896
1896
  [Symbol.for("rule_features")]: RULE_FEATURES30
1897
1897
  },
1898
1898
  messages: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.34.0",
3
+ "version": "1.34.1-next.1",
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",
@@ -49,12 +49,12 @@
49
49
  "compare-versions": "^6.1.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.6.2",
52
- "@eslint-react/ast": "1.34.0",
53
- "@eslint-react/core": "1.34.0",
54
- "@eslint-react/jsx": "1.34.0",
55
- "@eslint-react/shared": "1.34.0",
56
- "@eslint-react/var": "1.34.0",
57
- "@eslint-react/eff": "1.34.0"
52
+ "@eslint-react/ast": "1.34.1-next.1",
53
+ "@eslint-react/core": "1.34.1-next.1",
54
+ "@eslint-react/eff": "1.34.1-next.1",
55
+ "@eslint-react/jsx": "1.34.1-next.1",
56
+ "@eslint-react/shared": "1.34.1-next.1",
57
+ "@eslint-react/var": "1.34.1-next.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.0.10",