eslint-plugin-react-jsx 5.8.12 → 5.8.14

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 +18 -18
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
2
2
  import { ESLintUtils } from "@typescript-eslint/utils";
3
3
  import * as core from "@eslint-react/core";
4
- import { merge } from "@eslint-react/eslint";
4
+ import "@eslint-react/eslint";
5
5
  import { collapseMultilineText, findAttribute, getChildren, getElementFullType, hasAnyAttribute, hasChildren, isFragmentElement, isHostElement, isWhitespaceText } from "@eslint-react/jsx";
6
6
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
7
7
  import { Check, Extract, isOneOf } from "@eslint-react/ast";
@@ -26,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
26
26
  //#endregion
27
27
  //#region package.json
28
28
  var name$2 = "eslint-plugin-react-jsx";
29
- var version = "5.8.12";
29
+ var version = "5.8.14";
30
30
 
31
31
  //#endregion
32
32
  //#region src/utils/create-rule.ts
@@ -99,7 +99,7 @@ var no_children_prop_with_children_default = createRule({
99
99
  defaultOptions: []
100
100
  });
101
101
  function create$7(context) {
102
- return merge({
102
+ return {
103
103
  CallExpression(node) {
104
104
  if (!core.isCreateElementCall(context, node)) return;
105
105
  const [, propsArg, firstExtra] = node.arguments;
@@ -142,7 +142,7 @@ function create$7(context) {
142
142
  }]
143
143
  });
144
144
  }
145
- });
145
+ };
146
146
  }
147
147
 
148
148
  //#endregion
@@ -220,7 +220,7 @@ var no_children_prop_default = createRule({
220
220
  defaultOptions: []
221
221
  });
222
222
  function create$6(context) {
223
- return merge({
223
+ return {
224
224
  CallExpression(node) {
225
225
  if (!core.isCreateElementCall(context, node)) return;
226
226
  const [, propsArg] = node.arguments;
@@ -273,7 +273,7 @@ function create$6(context) {
273
273
  }]
274
274
  });
275
275
  }
276
- });
276
+ };
277
277
  }
278
278
 
279
279
  //#endregion
@@ -303,10 +303,10 @@ function create$5(context) {
303
303
  node
304
304
  });
305
305
  };
306
- return merge({
306
+ return {
307
307
  JSXText: visitorFunction,
308
308
  Literal: visitorFunction
309
- });
309
+ };
310
310
  }
311
311
 
312
312
  //#endregion
@@ -326,7 +326,7 @@ var no_key_after_spread_default = createRule({
326
326
  function create$4(context) {
327
327
  const { jsx } = core.getJsxConfig(context);
328
328
  if (!(jsx === ts.JsxEmit.ReactJSX || jsx === ts.JsxEmit.ReactJSXDev)) return {};
329
- return merge({ JSXOpeningElement(node) {
329
+ return { JSXOpeningElement(node) {
330
330
  let firstSpreadPropIndex = null;
331
331
  for (const [index, prop] of node.attributes.entries()) {
332
332
  if (prop.type === AST_NODE_TYPES.JSXSpreadAttribute) {
@@ -339,7 +339,7 @@ function create$4(context) {
339
339
  node: prop
340
340
  });
341
341
  }
342
- } });
342
+ } };
343
343
  }
344
344
 
345
345
  //#endregion
@@ -394,10 +394,10 @@ function create$3(context) {
394
394
  });
395
395
  }
396
396
  };
397
- return merge({
397
+ return {
398
398
  JSXElement: visitorFunction,
399
399
  JSXFragment: visitorFunction
400
- });
400
+ };
401
401
  }
402
402
 
403
403
  //#endregion
@@ -436,10 +436,10 @@ function create$2(context) {
436
436
  }]
437
437
  });
438
438
  };
439
- return merge({
439
+ return {
440
440
  JSXText: visitorFunction,
441
441
  Literal: visitorFunction
442
- });
442
+ };
443
443
  }
444
444
 
445
445
  //#endregion
@@ -457,7 +457,7 @@ var no_namespace_default = createRule({
457
457
  defaultOptions: []
458
458
  });
459
459
  function create$1(context) {
460
- return merge({ JSXElement(node) {
460
+ return { JSXElement(node) {
461
461
  const name = getElementFullType(node);
462
462
  if (typeof name !== "string" || !name.includes(":")) return;
463
463
  context.report({
@@ -465,7 +465,7 @@ function create$1(context) {
465
465
  messageId: "noNamespace",
466
466
  node: node.openingElement.name
467
467
  });
468
- } });
468
+ } };
469
469
  }
470
470
 
471
471
  //#endregion
@@ -577,7 +577,7 @@ function create(context, [option]) {
577
577
  node
578
578
  });
579
579
  }
580
- return merge({
580
+ return {
581
581
  JSXElement(node) {
582
582
  if (!isFragmentElement(node, jsxConfig.jsxFragmentFactory)) return;
583
583
  if (hasAnyAttribute(context, node, ["key", "ref"])) return;
@@ -586,7 +586,7 @@ function create(context, [option]) {
586
586
  JSXFragment(node) {
587
587
  checkNode(node);
588
588
  }
589
- });
589
+ };
590
590
  }
591
591
 
592
592
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-jsx",
3
- "version": "5.8.12",
3
+ "version": "5.8.14",
4
4
  "description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -39,19 +39,19 @@
39
39
  "dependencies": {
40
40
  "@typescript-eslint/types": "^8.60.1",
41
41
  "@typescript-eslint/utils": "^8.60.1",
42
- "@eslint-react/core": "5.8.12",
43
- "@eslint-react/eslint": "5.8.12",
44
- "@eslint-react/ast": "5.8.12",
45
- "@eslint-react/jsx": "5.8.12",
46
- "@eslint-react/shared": "5.8.12"
42
+ "@eslint-react/eslint": "5.8.14",
43
+ "@eslint-react/ast": "5.8.14",
44
+ "@eslint-react/core": "5.8.14",
45
+ "@eslint-react/jsx": "5.8.14",
46
+ "@eslint-react/shared": "5.8.14"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/react": "^19.2.16",
49
+ "@types/react": "^19.2.17",
50
50
  "@types/react-dom": "^19.2.3",
51
51
  "@typescript-eslint/rule-tester": "^8.60.1",
52
52
  "dedent": "^1.7.2",
53
53
  "eslint": "^10.4.1",
54
- "tsdown": "^0.22.1",
54
+ "tsdown": "^0.22.2",
55
55
  "typescript": "6.0.3",
56
56
  "@local/configs": "0.0.0",
57
57
  "@local/eff": "0.0.0"