eslint-plugin-react-hooks 6.1.0-canary-03fda05d-20250820 → 6.1.0-canary-6de32a5a-20250822
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.
|
@@ -1,96 +1,69 @@
|
|
|
1
1
|
import * as estree from 'estree';
|
|
2
|
-
import { Rule
|
|
2
|
+
import { Rule } from 'eslint';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
enableDangerousAutofixThisMayCauseInfiniteLoops:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
experimental_autoDependenciesHooks: {
|
|
27
|
-
type: "array";
|
|
28
|
-
items: {
|
|
4
|
+
declare const plugin: {
|
|
5
|
+
meta: {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
configs: {};
|
|
9
|
+
rules: {
|
|
10
|
+
'exhaustive-deps': {
|
|
11
|
+
meta: {
|
|
12
|
+
type: "suggestion";
|
|
13
|
+
docs: {
|
|
14
|
+
description: string;
|
|
15
|
+
recommended: true;
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
fixable: "code";
|
|
19
|
+
hasSuggestions: true;
|
|
20
|
+
schema: {
|
|
21
|
+
type: "object";
|
|
22
|
+
additionalProperties: false;
|
|
23
|
+
enableDangerousAutofixThisMayCauseInfiniteLoops: boolean;
|
|
24
|
+
properties: {
|
|
25
|
+
additionalHooks: {
|
|
29
26
|
type: "string";
|
|
30
27
|
};
|
|
28
|
+
enableDangerousAutofixThisMayCauseInfiniteLoops: {
|
|
29
|
+
type: "boolean";
|
|
30
|
+
};
|
|
31
|
+
experimental_autoDependenciesHooks: {
|
|
32
|
+
type: "array";
|
|
33
|
+
items: {
|
|
34
|
+
type: "string";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
requireExplicitEffectDeps: {
|
|
38
|
+
type: "boolean";
|
|
39
|
+
};
|
|
31
40
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
create(context: Rule.RuleContext): {
|
|
39
|
-
CallExpression: (node: estree.CallExpression) => void;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
'react-compiler': Rule.RuleModule;
|
|
43
|
-
'rules-of-hooks': {
|
|
44
|
-
meta: {
|
|
45
|
-
type: "problem";
|
|
46
|
-
docs: {
|
|
47
|
-
description: string;
|
|
48
|
-
recommended: true;
|
|
49
|
-
url: string;
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
43
|
+
create(context: Rule.RuleContext): {
|
|
44
|
+
CallExpression: (node: estree.CallExpression) => void;
|
|
50
45
|
};
|
|
51
46
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
recommended: {
|
|
72
|
-
name: string;
|
|
73
|
-
plugins: {
|
|
74
|
-
readonly 'react-hooks': ESLint.Plugin;
|
|
75
|
-
};
|
|
76
|
-
rules: {
|
|
77
|
-
'react-hooks/rules-of-hooks': "error";
|
|
78
|
-
'react-hooks/exhaustive-deps': "warn";
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
'recommended-latest': {
|
|
82
|
-
name: string;
|
|
83
|
-
plugins: {
|
|
84
|
-
readonly 'react-hooks': ESLint.Plugin;
|
|
85
|
-
};
|
|
86
|
-
rules: {
|
|
87
|
-
'react-hooks/rules-of-hooks': "error";
|
|
88
|
-
'react-hooks/exhaustive-deps': "warn";
|
|
47
|
+
'rules-of-hooks': {
|
|
48
|
+
meta: {
|
|
49
|
+
type: "problem";
|
|
50
|
+
docs: {
|
|
51
|
+
description: string;
|
|
52
|
+
recommended: true;
|
|
53
|
+
url: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
create(context: Rule.RuleContext): {
|
|
57
|
+
'*'(node: any): void;
|
|
58
|
+
'*:exit'(node: any): void;
|
|
59
|
+
CallExpression(node: estree.CallExpression & Rule.NodeParentExtension): void;
|
|
60
|
+
Identifier(node: estree.Identifier & Rule.NodeParentExtension): void;
|
|
61
|
+
'CallExpression:exit'(node: estree.CallExpression & Rule.NodeParentExtension): void;
|
|
62
|
+
FunctionDeclaration(node: estree.FunctionDeclaration & Rule.NodeParentExtension): void;
|
|
63
|
+
ArrowFunctionExpression(node: estree.ArrowFunctionExpression & Rule.NodeParentExtension): void;
|
|
64
|
+
};
|
|
89
65
|
};
|
|
90
66
|
};
|
|
91
67
|
};
|
|
92
|
-
declare const meta: {
|
|
93
|
-
name: string;
|
|
94
|
-
};
|
|
95
68
|
|
|
96
|
-
export {
|
|
69
|
+
export { plugin as default };
|