@eslint-react/kit 5.17.3 → 5.18.1
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.d.ts +6 -5
- package/dist/index.js +7 -5
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -9,16 +9,16 @@ import { ESLint, Linter } from "eslint";
|
|
|
9
9
|
//#region ../eslint/dist/index.d.ts
|
|
10
10
|
//#region src/types.d.ts
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Represents the ESLint rule context.
|
|
13
13
|
* @since 0.0.1
|
|
14
14
|
*/
|
|
15
15
|
type RuleContext<MessageIds extends string = string, Options extends readonly unknown[] = readonly unknown[]> = tseslint.RuleContext<MessageIds, Options>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Merge multiple visitor objects into a single visitor object.
|
|
18
18
|
*
|
|
19
|
-
* @param base
|
|
20
|
-
* @param rest
|
|
21
|
-
* @returns
|
|
19
|
+
* @param base The base visitor object (target of merge).
|
|
20
|
+
* @param rest The additional visitor objects to merge (one or more).
|
|
21
|
+
* @returns The merged visitor object.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```typescript
|
|
@@ -105,6 +105,7 @@ interface RuleToolkit {
|
|
|
105
105
|
useOptimisticCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
|
106
106
|
useReducerCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
|
107
107
|
useRefCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
|
108
|
+
useRefLikeCall: typeof core.isUseRefLikeCall;
|
|
108
109
|
useStateCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
|
109
110
|
useStateLikeCall: typeof core.isUseStateLikeCall;
|
|
110
111
|
useSyncExternalStoreCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
package/dist/index.js
CHANGED
|
@@ -7,20 +7,21 @@ import { ESLintUtils } from "@typescript-eslint/utils";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "@eslint-react/kit";
|
|
10
|
-
var version = "5.
|
|
10
|
+
var version = "5.18.1";
|
|
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. */
|
|
17
18
|
const createRule = ESLintUtils.RuleCreator(getDocsUrl);
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* Merge multiple visitor objects into a single visitor object.
|
|
20
21
|
*
|
|
21
|
-
* @param base
|
|
22
|
-
* @param rest
|
|
23
|
-
* @returns
|
|
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.
|
|
24
25
|
*
|
|
25
26
|
* @example
|
|
26
27
|
* ```typescript
|
|
@@ -117,6 +118,7 @@ function makeRuleToolkit(context) {
|
|
|
117
118
|
useOptimisticCall: core.isUseOptimisticCall(context),
|
|
118
119
|
useReducerCall: core.isUseReducerCall(context),
|
|
119
120
|
useRefCall: core.isUseRefCall(context),
|
|
121
|
+
useRefLikeCall: core.isUseRefLikeCall,
|
|
120
122
|
useStateCall: core.isUseStateCall(context),
|
|
121
123
|
useStateLikeCall: core.isUseStateLikeCall,
|
|
122
124
|
useSyncExternalStoreCall: core.isUseSyncExternalStoreCall(context),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.1",
|
|
4
4
|
"description": "ESLint React's utility module for building custom React rules with JavaScript functions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/types": "^8.
|
|
39
|
-
"@typescript-eslint/utils": "^8.
|
|
38
|
+
"@typescript-eslint/types": "^8.65.0",
|
|
39
|
+
"@typescript-eslint/utils": "^8.65.0",
|
|
40
40
|
"string-ts": "^2.3.1",
|
|
41
|
-
"@eslint-react/
|
|
42
|
-
"@eslint-react/
|
|
43
|
-
"@eslint-react/
|
|
41
|
+
"@eslint-react/shared": "5.18.1",
|
|
42
|
+
"@eslint-react/ast": "5.18.1",
|
|
43
|
+
"@eslint-react/core": "5.18.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"eslint": "^10.
|
|
47
|
-
"tsdown": "^0.22.
|
|
46
|
+
"eslint": "^10.8.0",
|
|
47
|
+
"tsdown": "^0.22.14",
|
|
48
48
|
"typescript": "6.0.3",
|
|
49
|
-
"@eslint-react/eslint": "5.
|
|
49
|
+
"@eslint-react/eslint": "5.18.1",
|
|
50
50
|
"@local/configs": "0.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|