eslint-plugin-react-x 1.15.0 → 1.15.1-next.2

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
@@ -41,7 +41,7 @@ var ts25__default = /*#__PURE__*/_interopDefault(ts25);
41
41
 
42
42
  // package.json
43
43
  var name = "eslint-plugin-react-x";
44
- var version = "1.15.0";
44
+ var version = "1.15.1-next.2";
45
45
  var createRule = shared.createRuleForPlugin("x");
46
46
 
47
47
  // src/rules/avoid-shorthand-boolean.ts
@@ -952,15 +952,15 @@ var no_duplicate_key_default = createRule({
952
952
  }
953
953
  function checkExpression(node) {
954
954
  switch (node.type) {
955
- case types.AST_NODE_TYPES.JSXElement:
956
- case types.AST_NODE_TYPES.JSXFragment:
957
- return checkIteratorElement(node);
958
955
  case types.AST_NODE_TYPES.ConditionalExpression:
959
956
  if (!("consequent" in node)) return tools.O.none();
960
957
  return tools.F.pipe(
961
958
  checkIteratorElement(node.consequent),
962
959
  tools.O.orElse(() => checkIteratorElement(node.alternate))
963
960
  );
961
+ case types.AST_NODE_TYPES.JSXElement:
962
+ case types.AST_NODE_TYPES.JSXFragment:
963
+ return checkIteratorElement(node);
964
964
  case types.AST_NODE_TYPES.LogicalExpression:
965
965
  if (!("left" in node)) return tools.O.none();
966
966
  return tools.F.pipe(
@@ -1336,12 +1336,12 @@ var no_missing_key_default = createRule({
1336
1336
  }
1337
1337
  function checkExpression(node) {
1338
1338
  switch (node.type) {
1339
- case types.AST_NODE_TYPES.JSXElement:
1340
- case types.AST_NODE_TYPES.JSXFragment:
1341
- return checkIteratorElement(node);
1342
1339
  case types.AST_NODE_TYPES.ConditionalExpression:
1343
1340
  if (!("consequent" in node)) return tools.O.none();
1344
1341
  return tools.O.orElse(checkIteratorElement(node.consequent), () => checkIteratorElement(node.alternate));
1342
+ case types.AST_NODE_TYPES.JSXElement:
1343
+ case types.AST_NODE_TYPES.JSXFragment:
1344
+ return checkIteratorElement(node);
1345
1345
  case types.AST_NODE_TYPES.LogicalExpression:
1346
1346
  if (!("left" in node)) return tools.O.none();
1347
1347
  return tools.O.orElse(checkIteratorElement(node.left), () => checkIteratorElement(node.right));
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import { getTypeImmutability, isUnknown, isImmutable, isReadonlyShallow, isReado
14
14
 
15
15
  // package.json
16
16
  var name = "eslint-plugin-react-x";
17
- var version = "1.15.0";
17
+ var version = "1.15.1-next.2";
18
18
  var createRule = createRuleForPlugin("x");
19
19
 
20
20
  // src/rules/avoid-shorthand-boolean.ts
@@ -925,15 +925,15 @@ var no_duplicate_key_default = createRule({
925
925
  }
926
926
  function checkExpression(node) {
927
927
  switch (node.type) {
928
- case AST_NODE_TYPES.JSXElement:
929
- case AST_NODE_TYPES.JSXFragment:
930
- return checkIteratorElement(node);
931
928
  case AST_NODE_TYPES.ConditionalExpression:
932
929
  if (!("consequent" in node)) return O.none();
933
930
  return F.pipe(
934
931
  checkIteratorElement(node.consequent),
935
932
  O.orElse(() => checkIteratorElement(node.alternate))
936
933
  );
934
+ case AST_NODE_TYPES.JSXElement:
935
+ case AST_NODE_TYPES.JSXFragment:
936
+ return checkIteratorElement(node);
937
937
  case AST_NODE_TYPES.LogicalExpression:
938
938
  if (!("left" in node)) return O.none();
939
939
  return F.pipe(
@@ -1309,12 +1309,12 @@ var no_missing_key_default = createRule({
1309
1309
  }
1310
1310
  function checkExpression(node) {
1311
1311
  switch (node.type) {
1312
- case AST_NODE_TYPES.JSXElement:
1313
- case AST_NODE_TYPES.JSXFragment:
1314
- return checkIteratorElement(node);
1315
1312
  case AST_NODE_TYPES.ConditionalExpression:
1316
1313
  if (!("consequent" in node)) return O.none();
1317
1314
  return O.orElse(checkIteratorElement(node.consequent), () => checkIteratorElement(node.alternate));
1315
+ case AST_NODE_TYPES.JSXElement:
1316
+ case AST_NODE_TYPES.JSXFragment:
1317
+ return checkIteratorElement(node);
1318
1318
  case AST_NODE_TYPES.LogicalExpression:
1319
1319
  if (!("left" in node)) return O.none();
1320
1320
  return O.orElse(checkIteratorElement(node.left), () => checkIteratorElement(node.right));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.15.0",
3
+ "version": "1.15.1-next.2",
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
  "eslint",
@@ -42,19 +42,19 @@
42
42
  "./package.json"
43
43
  ],
44
44
  "dependencies": {
45
- "@typescript-eslint/scope-manager": "^8.8.1",
46
- "@typescript-eslint/type-utils": "^8.8.1",
47
- "@typescript-eslint/types": "^8.8.1",
48
- "@typescript-eslint/utils": "^8.8.1",
45
+ "@typescript-eslint/scope-manager": "^8.10.0",
46
+ "@typescript-eslint/type-utils": "^8.10.0",
47
+ "@typescript-eslint/types": "^8.10.0",
48
+ "@typescript-eslint/utils": "^8.10.0",
49
49
  "is-immutable-type": "5.0.0",
50
- "ts-pattern": "^5.4.0",
51
- "@eslint-react/ast": "1.15.0",
52
- "@eslint-react/core": "1.15.0",
53
- "@eslint-react/jsx": "1.15.0",
54
- "@eslint-react/shared": "1.15.0",
55
- "@eslint-react/types": "1.15.0",
56
- "@eslint-react/var": "1.15.0",
57
- "@eslint-react/tools": "1.15.0"
50
+ "ts-pattern": "^5.5.0",
51
+ "@eslint-react/ast": "1.15.1-next.2",
52
+ "@eslint-react/jsx": "1.15.1-next.2",
53
+ "@eslint-react/core": "1.15.1-next.2",
54
+ "@eslint-react/shared": "1.15.1-next.2",
55
+ "@eslint-react/tools": "1.15.1-next.2",
56
+ "@eslint-react/var": "1.15.1-next.2",
57
+ "@eslint-react/types": "1.15.1-next.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^18.3.11",