eslint-plugin-react-x 5.18.7 → 5.18.9
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 +18 -7
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ const rules$6 = {
|
|
|
145
145
|
//#endregion
|
|
146
146
|
//#region package.json
|
|
147
147
|
var name$6 = "eslint-plugin-react-x";
|
|
148
|
-
var version = "5.18.
|
|
148
|
+
var version = "5.18.9";
|
|
149
149
|
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region src/utils/create-rule.ts
|
|
@@ -8577,6 +8577,17 @@ const settings = { ...settings$1 };
|
|
|
8577
8577
|
|
|
8578
8578
|
//#endregion
|
|
8579
8579
|
//#region src/index.ts
|
|
8580
|
+
function createConfig(base) {
|
|
8581
|
+
return {
|
|
8582
|
+
...base,
|
|
8583
|
+
plugins: {
|
|
8584
|
+
...base.plugins,
|
|
8585
|
+
get ["react-x"]() {
|
|
8586
|
+
return finalPlugin;
|
|
8587
|
+
}
|
|
8588
|
+
}
|
|
8589
|
+
};
|
|
8590
|
+
}
|
|
8580
8591
|
const finalPlugin = {
|
|
8581
8592
|
...plugin,
|
|
8582
8593
|
configs: {
|
|
@@ -8599,27 +8610,27 @@ const finalPlugin = {
|
|
|
8599
8610
|
/**
|
|
8600
8611
|
* Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects
|
|
8601
8612
|
*/
|
|
8602
|
-
["recommended"]: recommended_exports,
|
|
8613
|
+
["recommended"]: createConfig(recommended_exports),
|
|
8603
8614
|
/**
|
|
8604
8615
|
* Same as the `recommended-typescript` preset but enables additional rules that require type information
|
|
8605
8616
|
*/
|
|
8606
|
-
["recommended-type-checked"]: recommended_type_checked_exports,
|
|
8617
|
+
["recommended-type-checked"]: createConfig(recommended_type_checked_exports),
|
|
8607
8618
|
/**
|
|
8608
8619
|
* Same as the `recommended` preset but disables rules that can be enforced by TypeScript
|
|
8609
8620
|
*/
|
|
8610
|
-
["recommended-typescript"]: recommended_typescript_exports,
|
|
8621
|
+
["recommended-typescript"]: createConfig(recommended_typescript_exports),
|
|
8611
8622
|
/**
|
|
8612
8623
|
* More strict version of the `recommended` preset
|
|
8613
8624
|
*/
|
|
8614
|
-
["strict"]: strict_exports,
|
|
8625
|
+
["strict"]: createConfig(strict_exports),
|
|
8615
8626
|
/**
|
|
8616
8627
|
* Same as the `strict-typescript` preset but enables additional rules that require type information
|
|
8617
8628
|
*/
|
|
8618
|
-
["strict-type-checked"]: strict_type_checked_exports,
|
|
8629
|
+
["strict-type-checked"]: createConfig(strict_type_checked_exports),
|
|
8619
8630
|
/**
|
|
8620
8631
|
* Same as the `strict` preset but disables rules that can be enforced by TypeScript
|
|
8621
8632
|
*/
|
|
8622
|
-
["strict-typescript"]: strict_typescript_exports
|
|
8633
|
+
["strict-typescript"]: createConfig(strict_typescript_exports)
|
|
8623
8634
|
}
|
|
8624
8635
|
};
|
|
8625
8636
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.9",
|
|
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
|
"react",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eslint-react/ast": "5.18.
|
|
40
|
-
"@eslint-react/core": "5.18.
|
|
41
|
-
"@eslint-react/eslint": "5.18.
|
|
42
|
-
"@eslint-react/jsx": "5.18.
|
|
43
|
-
"@eslint-react/shared": "5.18.
|
|
44
|
-
"@eslint-react/var": "5.18.
|
|
39
|
+
"@eslint-react/ast": "5.18.9",
|
|
40
|
+
"@eslint-react/core": "5.18.9",
|
|
41
|
+
"@eslint-react/eslint": "5.18.9",
|
|
42
|
+
"@eslint-react/jsx": "5.18.9",
|
|
43
|
+
"@eslint-react/shared": "5.18.9",
|
|
44
|
+
"@eslint-react/var": "5.18.9",
|
|
45
45
|
"@typescript-eslint/scope-manager": "^8.69.0",
|
|
46
46
|
"@typescript-eslint/type-utils": "^8.69.0",
|
|
47
47
|
"@typescript-eslint/types": "^8.69.0",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"@local/configs": "0.0.0",
|
|
57
57
|
"@local/eff": "0.0.0",
|
|
58
58
|
"@types/react": "^19.2.18",
|
|
59
|
-
"@types/react-dom": "^19.2.
|
|
59
|
+
"@types/react-dom": "^19.2.7",
|
|
60
60
|
"dedent": "^1.7.2",
|
|
61
|
-
"eslint": "^10.
|
|
61
|
+
"eslint": "^10.10.0",
|
|
62
62
|
"react": "^19.2.8",
|
|
63
63
|
"react-dom": "^19.2.8",
|
|
64
|
-
"tsdown": "^0.
|
|
64
|
+
"tsdown": "^0.23.0",
|
|
65
65
|
"tsl": "^1.0.30",
|
|
66
66
|
"tsl-dx": "^0.13.3",
|
|
67
67
|
"typescript": "6.0.3"
|