Skip to content

Commit 82e7cc6

Browse files
committed
refactor: export the create function of each rule
1 parent f4eb871 commit 82e7cc6

File tree

143 files changed

+3761
-3678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+3761
-3678
lines changed

packages/core/docs/-internal-/README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,6 @@
531531
532532
***
533533

534-
### Program
535-
536-
> **Program**: `"Program"`
537-
538-
***
539-
540534
### Punctuator
541535

542536
> **Punctuator**: `"Punctuator"`
@@ -1823,6 +1817,7 @@
18231817
- [ReportFixFunction](type-aliases/ReportFixFunction.md)
18241818
- [ResolutionMode](type-aliases/ResolutionMode.md)
18251819
- [Reverse](type-aliases/Reverse.md)
1820+
- [RuleContext](type-aliases/RuleContext.md)
18261821
- [RuleFunction](type-aliases/RuleFunction.md)
18271822
- [RuleListener](type-aliases/RuleListener.md)
18281823
- [RuleListenerCatchAllBaseCase](type-aliases/RuleListenerCatchAllBaseCase.md)

packages/core/docs/-internal-/classes/VariableBase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
## Extended by
1010

11-
- [`ESLintScopeVariable`](ESLintScopeVariable.md)
1211
- [`Variable`](Variable.md)
12+
- [`ESLintScopeVariable`](ESLintScopeVariable.md)
1313

1414
## Constructors
1515

packages/core/docs/-internal-/enumerations/AST_NODE_TYPES.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@
122122
123123
***
124124

125+
### Program
126+
127+
> **Program**: `"Program"`
128+
129+
***
130+
125131
### Property
126132

127133
> **Property**: `"Property"`
@@ -560,12 +566,6 @@ Re-exports [PrivateIdentifier](../README.md#privateidentifier)
560566

561567
***
562568

563-
### Program
564-
565-
Re-exports [Program](../README.md#program)
566-
567-
***
568-
569569
### RestElement
570570

571571
Re-exports [RestElement](../README.md#restelement)

packages/core/docs/-internal-/namespaces/SourceCode/interfaces/Program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ This never-used property exists only as a convenience for code that tries to acc
9292

9393
### type
9494

95-
> **type**: [`Program`](../../../README.md#program)
95+
> **type**: [`Program`](../../../enumerations/AST_NODE_TYPES.md#program)
9696
9797
#### Inherited from
9898

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[**@eslint-react/core**](../../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../../README.md) / [\<internal\>](../README.md) / RuleContext
6+
7+
# Type Alias: RuleContext\<MessageIds, Options\>
8+
9+
> **RuleContext**\<`MessageIds`, `Options`\>: [`RuleContext`](../interfaces/RuleContext.md)\<`MessageIds`, `Options`\>
10+
11+
Rule context.
12+
13+
## Type Parameters
14+
15+
**MessageIds** *extends* `string` = `string`
16+
17+
**Options** *extends* readonly `unknown`[] = readonly `unknown`[]
18+
19+
## Since
20+
21+
0.0.1

packages/core/docs/functions/getFunctionComponentIdentifier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
### context
1414

15-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
15+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
1616

1717
### node
1818

packages/core/docs/functions/hasNoneOrLooseComponentName.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
### context
1414

15-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
15+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
1616

1717
### node
1818

packages/core/docs/functions/isChildrenCount.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#### context
1616

17-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
17+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
1818

1919
### Returns
2020

@@ -38,7 +38,7 @@ node is Identifier \| MemberExpression
3838

3939
#### context
4040

41-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
41+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
4242

4343
#### node
4444

packages/core/docs/functions/isChildrenCountCall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#### context
1616

17-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
17+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
1818

1919
### Returns
2020

@@ -38,7 +38,7 @@
3838

3939
#### context
4040

41-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
41+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
4242

4343
#### node
4444

packages/core/docs/functions/isChildrenForEach.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#### context
1616

17-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
17+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
1818

1919
### Returns
2020

@@ -38,7 +38,7 @@ node is Identifier \| MemberExpression
3838

3939
#### context
4040

41-
[`Readonly`](../-internal-/type-aliases/Readonly.md)
41+
[`RuleContext`](../-internal-/type-aliases/RuleContext.md)
4242

4343
#### node
4444

0 commit comments

Comments
 (0)