@eslint-react/kit 5.28.8 → 5.30.0-beta.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 +2 -8
- package/dist/index.js +4 -7
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,6 @@ import "typescript";
|
|
|
8
8
|
import * as tseslint from "@typescript-eslint/utils/ts-eslint";
|
|
9
9
|
import { RuleFix, RuleFixer, RuleListener, RuleListener as RuleListener$1 } from "@typescript-eslint/utils/ts-eslint";
|
|
10
10
|
import { ESLint, Linter } from "eslint";
|
|
11
|
-
//#region ../eslint/dist/index.d.ts
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/types.d.ts
|
|
14
11
|
/**
|
|
15
12
|
* Represents the ESLint rule context.
|
|
16
13
|
* @since 0.0.1
|
|
@@ -32,8 +29,6 @@ type RuleContext<M extends string = string, O extends readonly unknown[] = reado
|
|
|
32
29
|
* ```
|
|
33
30
|
*/
|
|
34
31
|
export declare function merge(base: RuleListener$1, ...rest: RuleListener$1[]): RuleListener$1;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/index.d.ts
|
|
37
32
|
export interface Collector<T> {
|
|
38
33
|
query: {
|
|
39
34
|
all(program: TSESTree.Program): T[];
|
|
@@ -78,8 +73,8 @@ export interface RuleToolkit {
|
|
|
78
73
|
componentDecl: (node: TSESTreeFunction, hint: bigint) => boolean;
|
|
79
74
|
componentName: typeof core.isFunctionComponentName;
|
|
80
75
|
componentNameLoose: typeof core.isFunctionComponentNameLoose;
|
|
81
|
-
componentWrapperCall: (node: TSESTree.
|
|
82
|
-
componentWrapperCallback: (node:
|
|
76
|
+
componentWrapperCall: (node: TSESTree.CallExpression) => boolean;
|
|
77
|
+
componentWrapperCallback: (node: TSESTreeFunction) => boolean;
|
|
83
78
|
createContextCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
|
84
79
|
createElementCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
|
85
80
|
createRefCall: (node: null | TSESTree.Node) => node is TSESTree.CallExpression;
|
|
@@ -139,5 +134,4 @@ declare module "@typescript-eslint/utils/ts-eslint" {
|
|
|
139
134
|
}): void;
|
|
140
135
|
}
|
|
141
136
|
}
|
|
142
|
-
//#endregion
|
|
143
137
|
export type { RuleFix, RuleFixer, RuleListener };
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,10 @@ import { getSettingsFromContext } from "@eslint-react/shared";
|
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { kebabCase } from "string-ts";
|
|
6
6
|
import * as ESLintUtils from "@typescript-eslint/utils/eslint-utils";
|
|
7
|
-
|
|
7
|
+
// package.json
|
|
8
8
|
var name = "@eslint-react/kit";
|
|
9
|
-
var version = "5.
|
|
10
|
-
|
|
11
|
-
//#region ../eslint/dist/index.js
|
|
9
|
+
var version = "5.30.0-beta.1";
|
|
10
|
+
// ../eslint/dist/index.js
|
|
12
11
|
function getDocsUrl(ruleName) {
|
|
13
12
|
return `https://eslint-react.xyz/docs/rules/${ruleName}`;
|
|
14
13
|
}
|
|
@@ -23,8 +22,7 @@ function merge(base, ...rest) {
|
|
|
23
22
|
}
|
|
24
23
|
return base;
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
//#region src/index.ts
|
|
25
|
+
// src/index.ts
|
|
28
26
|
function makeRuleToolkit(context) {
|
|
29
27
|
return {
|
|
30
28
|
ast: {
|
|
@@ -145,5 +143,4 @@ function build() {
|
|
|
145
143
|
};
|
|
146
144
|
return builder;
|
|
147
145
|
}
|
|
148
|
-
//#endregion
|
|
149
146
|
export { build as default, merge };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.0-beta.1",
|
|
4
4
|
"description": "ESLint React's utility module for building custom React rules with JavaScript functions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@eslint-react/ast": "5.
|
|
39
|
-
"@eslint-react/core": "5.
|
|
40
|
-
"@eslint-react/shared": "5.
|
|
38
|
+
"@eslint-react/ast": "5.30.0-beta.1",
|
|
39
|
+
"@eslint-react/core": "5.30.0-beta.1",
|
|
40
|
+
"@eslint-react/shared": "5.30.0-beta.1",
|
|
41
41
|
"@typescript-eslint/types": "^8.72.0",
|
|
42
42
|
"@typescript-eslint/utils": "^8.72.0",
|
|
43
43
|
"string-ts": "^2.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@eslint-react/eslint": "5.
|
|
46
|
+
"@eslint-react/eslint": "5.30.0-beta.1",
|
|
47
47
|
"@local/configs": "0.0.0",
|
|
48
48
|
"@tsconfig/node20": "^20.1.10",
|
|
49
49
|
"@types/node": "^20.19.43",
|
|
50
50
|
"eslint": "^10.13.0",
|
|
51
|
-
"tsdown": "^0.23.
|
|
51
|
+
"tsdown": "^0.23.2",
|
|
52
52
|
"typescript": "6.0.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|