eslint-plugin-react-jsx 5.18.6 → 5.18.8

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 +14 -3
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -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.18.6";
29
+ var version = "5.18.8";
30
30
 
31
31
  //#endregion
32
32
  //#region src/utils/create-rule.ts
@@ -1056,11 +1056,22 @@ const settings = { ...settings$1 };
1056
1056
 
1057
1057
  //#endregion
1058
1058
  //#region src/index.ts
1059
+ function createConfig(base) {
1060
+ return {
1061
+ ...base,
1062
+ plugins: {
1063
+ ...base.plugins,
1064
+ get ["react-jsx"]() {
1065
+ return finalPlugin;
1066
+ }
1067
+ }
1068
+ };
1069
+ }
1059
1070
  const finalPlugin = {
1060
1071
  ...plugin,
1061
1072
  configs: {
1062
- ["recommended"]: recommended_exports,
1063
- ["strict"]: strict_exports
1073
+ ["recommended"]: createConfig(recommended_exports),
1074
+ ["strict"]: createConfig(strict_exports)
1064
1075
  }
1065
1076
  };
1066
1077
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-jsx",
3
- "version": "5.18.6",
3
+ "version": "5.18.8",
4
4
  "description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,23 +37,23 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@typescript-eslint/types": "^8.67.0",
41
- "@typescript-eslint/utils": "^8.67.0",
42
- "@eslint-react/core": "5.18.6",
43
- "@eslint-react/jsx": "5.18.6",
44
- "@eslint-react/ast": "5.18.6",
45
- "@eslint-react/eslint": "5.18.6",
46
- "@eslint-react/shared": "5.18.6"
40
+ "@eslint-react/ast": "5.18.8",
41
+ "@eslint-react/core": "5.18.8",
42
+ "@eslint-react/eslint": "5.18.8",
43
+ "@eslint-react/jsx": "5.18.8",
44
+ "@eslint-react/shared": "5.18.8",
45
+ "@typescript-eslint/types": "^8.69.0",
46
+ "@typescript-eslint/utils": "^8.69.0"
47
47
  },
48
48
  "devDependencies": {
49
+ "@local/configs": "0.0.0",
50
+ "@local/eff": "0.0.0",
49
51
  "@types/react": "^19.2.18",
50
- "@types/react-dom": "^19.2.4",
52
+ "@types/react-dom": "^19.2.5",
51
53
  "dedent": "^1.7.2",
52
- "eslint": "^10.8.1",
54
+ "eslint": "^10.9.1",
53
55
  "tsdown": "^0.22.14",
54
- "typescript": "6.0.3",
55
- "@local/configs": "0.0.0",
56
- "@local/eff": "0.0.0"
56
+ "typescript": "6.0.3"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "eslint": "*",