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, ESLint } from 'eslint';
2
+ import { Rule } from 'eslint';
3
3
 
4
- declare const rules: {
5
- 'exhaustive-deps': {
6
- meta: {
7
- type: "suggestion";
8
- docs: {
9
- description: string;
10
- recommended: true;
11
- url: string;
12
- };
13
- fixable: "code";
14
- hasSuggestions: true;
15
- schema: {
16
- type: "object";
17
- additionalProperties: false;
18
- enableDangerousAutofixThisMayCauseInfiniteLoops: boolean;
19
- properties: {
20
- additionalHooks: {
21
- type: "string";
22
- };
23
- enableDangerousAutofixThisMayCauseInfiniteLoops: {
24
- type: "boolean";
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
- requireExplicitEffectDeps: {
33
- type: "boolean";
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
- create(context: Rule.RuleContext): {
53
- '*'(node: any): void;
54
- '*:exit'(node: any): void;
55
- CallExpression(node: estree.CallExpression & Rule.NodeParentExtension): void;
56
- Identifier(node: estree.Identifier & Rule.NodeParentExtension): void;
57
- 'CallExpression:exit'(node: estree.CallExpression & Rule.NodeParentExtension): void;
58
- FunctionDeclaration(node: estree.FunctionDeclaration & Rule.NodeParentExtension): void;
59
- ArrowFunctionExpression(node: estree.ArrowFunctionExpression & Rule.NodeParentExtension): void;
60
- };
61
- };
62
- };
63
- declare const configs: {
64
- 'recommended-legacy': {
65
- plugins: string[];
66
- rules: {
67
- 'react-hooks/rules-of-hooks': "error";
68
- 'react-hooks/exhaustive-deps': "warn";
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 { configs, meta, rules };
69
+ export { plugin as default };