@eslint-react/kit 5.24.1 → 5.24.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 +1 -17
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -7,30 +7,14 @@ import * as ESLintUtils from "@typescript-eslint/utils/eslint-utils";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "@eslint-react/kit";
|
|
10
|
-
var version = "5.24.
|
|
10
|
+
var version = "5.24.2";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ../eslint/dist/index.js
|
|
14
14
|
function getDocsUrl(ruleName) {
|
|
15
15
|
return `https://eslint-react.xyz/docs/rules/${ruleName}`;
|
|
16
16
|
}
|
|
17
|
-
/** The rule creator that generates documentation URLs for ESLint React rules. */
|
|
18
17
|
const createRule = ESLintUtils.RuleCreator(getDocsUrl);
|
|
19
|
-
/**
|
|
20
|
-
* Merge multiple visitor objects into a single visitor object.
|
|
21
|
-
*
|
|
22
|
-
* @param base The base visitor object (target of merge).
|
|
23
|
-
* @param rest The additional visitor objects to merge (one or more).
|
|
24
|
-
* @returns The merged visitor object.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```typescript
|
|
28
|
-
* const visitor1 = { Identifier: () => console.log(1) };
|
|
29
|
-
* const visitor2 = { Identifier: () => console.log(2) };
|
|
30
|
-
* const merged = merge(visitor1, visitor2);
|
|
31
|
-
* // When encountering Identifier nodes, outputs 1 then 2
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
18
|
function merge(base, ...rest) {
|
|
35
19
|
for (const r of rest) for (const key in r) {
|
|
36
20
|
const existing = base[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.2",
|
|
4
4
|
"description": "ESLint React's utility module for building custom React rules with JavaScript functions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@eslint-react/ast": "5.24.
|
|
39
|
-
"@eslint-react/core": "5.24.
|
|
40
|
-
"@eslint-react/shared": "5.24.
|
|
38
|
+
"@eslint-react/ast": "5.24.2",
|
|
39
|
+
"@eslint-react/core": "5.24.2",
|
|
40
|
+
"@eslint-react/shared": "5.24.2",
|
|
41
41
|
"@typescript-eslint/types": "^8.71.0",
|
|
42
42
|
"@typescript-eslint/utils": "^8.71.0",
|
|
43
43
|
"string-ts": "^2.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@eslint-react/eslint": "5.24.
|
|
46
|
+
"@eslint-react/eslint": "5.24.2",
|
|
47
47
|
"@local/configs": "0.0.0",
|
|
48
48
|
"eslint": "^10.12.0",
|
|
49
49
|
"tsdown": "^0.23.0",
|