@@ -10,7 +10,6 @@ export {
10
10
/**
11
11
* MDX expression node, occurring in flow (block).
12
12
*/
13
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
14
13
export interface MdxFlowExpression extends MdastLiteral {
15
14
/**
16
15
* Node type.
@@ -24,15 +23,13 @@ export interface MdxFlowExpression extends MdastLiteral {
24
23
/**
25
24
* Program node from estree.
26
25
*/
27
- // eslint-disable-next-line @typescript-eslint/ban-types
28
26
estree ?: Program | null | undefined
29
27
} & MdastLiteral [ 'data' ]
30
28
}
31
29
32
30
/**
33
31
* MDX expression node, occurring in text (phrasing).
34
32
*/
35
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
36
33
export interface MdxTextExpression extends MdastLiteral {
37
34
/**
38
35
* Node type.
@@ -46,27 +43,25 @@ export interface MdxTextExpression extends MdastLiteral {
46
43
/**
47
44
* Program node from estree.
48
45
*/
49
- // eslint-disable-next-line @typescript-eslint/ban-types
50
46
estree ?: Program | null | undefined
51
47
} & MdastLiteral [ 'data' ]
52
48
}
53
49
50
+ // To do: next major: remove.
54
51
/**
55
52
* Deprecated: use `MdxFlowExpression`.
56
53
*/
57
- // eslint-disable-next-line @typescript-eslint/naming-convention
58
54
export type MDXFlowExpression = MdxFlowExpression
59
55
56
+ // To do: next major: remove.
60
57
/**
61
58
* Deprecated: use `MdxTextExpression`.
62
59
*/
63
- // eslint-disable-next-line @typescript-eslint/naming-convention
64
60
export type MDXTextExpression = MdxTextExpression
65
61
66
62
/**
67
63
* MDX expression node, occurring in flow (block), for hast.
68
64
*/
69
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
70
65
export interface MdxFlowExpressionHast extends HastLiteral {
71
66
/**
72
67
* Node type.
@@ -80,15 +75,13 @@ export interface MdxFlowExpressionHast extends HastLiteral {
80
75
/**
81
76
* Program node from estree.
82
77
*/
83
- // eslint-disable-next-line @typescript-eslint/ban-types
84
78
estree ?: Program | null | undefined
85
79
} & HastLiteral [ 'data' ]
86
80
}
87
81
88
82
/**
89
83
* MDX expression node, occurring in text (phrasing), for hast.
90
84
*/
91
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
92
85
export interface MdxTextExpressionHast extends HastLiteral {
93
86
/**
94
87
* Node type.
@@ -102,14 +95,12 @@ export interface MdxTextExpressionHast extends HastLiteral {
102
95
/**
103
96
* Program node from estree.
104
97
*/
105
- // eslint-disable-next-line @typescript-eslint/ban-types
106
98
estree ?: Program | null | undefined
107
99
} & HastLiteral [ 'data' ]
108
100
}
109
101
110
102
// Add nodes to mdast content.
111
103
declare module 'mdast' {
112
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
113
104
interface RootContentMap {
114
105
/**
115
106
* MDX expression node, occurring in text (phrasing).
@@ -121,15 +112,13 @@ declare module 'mdast' {
121
112
mdxFlowExpression : MdxFlowExpression
122
113
}
123
114
124
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
125
115
interface PhrasingContentMap {
126
116
/**
127
117
* MDX expression node, occurring in text (phrasing).
128
118
*/
129
119
mdxTextExpression : MdxTextExpression
130
120
}
131
121
132
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
133
122
interface BlockContentMap {
134
123
/**
135
124
* MDX expression node, occurring in flow (block).
@@ -140,7 +129,6 @@ declare module 'mdast' {
140
129
141
130
// Add nodes to hast content.
142
131
declare module 'hast' {
143
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
144
132
interface RootContentMap {
145
133
/**
146
134
* MDX expression node, occurring in flow (block).
@@ -152,7 +140,6 @@ declare module 'hast' {
152
140
mdxTextExpression : MdxTextExpressionHast
153
141
}
154
142
155
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
156
143
interface ElementContentMap {
157
144
/**
158
145
* MDX expression node, occurring in flow (block).
0 commit comments