eslint-markdown 0.11.0 → 0.12.0
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/build/configs/all.d.ts +5 -4
- package/build/configs/all.js +54 -0
- package/build/configs/base.d.ts +4 -4
- package/build/configs/base.js +27 -0
- package/{src → build}/configs/index.js +0 -2
- package/build/configs/recommended.d.ts +4 -4
- package/build/configs/recommended.js +36 -0
- package/build/configs/stylistic.d.ts +4 -4
- package/build/configs/stylistic.js +38 -0
- package/build/core/constants.d.ts +6 -5
- package/{src → build}/core/constants.js +1 -8
- package/build/core/types.js +4 -0
- package/build/core/{ast → utils}/escape-string-regexp.d.ts +2 -2
- package/{src/core/ast → build/core/utils}/escape-string-regexp.js +6 -9
- package/build/core/utils/html.d.ts +11 -0
- package/build/core/utils/html.js +31 -0
- package/{src/core/ast → build/core/utils}/index.js +0 -1
- package/build/core/utils/is-blank-line.d.ts +12 -0
- package/{src/core/ast → build/core/utils}/is-blank-line.js +16 -24
- package/build/core/{ast → utils}/skip-ranges.d.ts +6 -7
- package/build/core/utils/skip-ranges.js +33 -0
- package/build/index.d.ts +1393 -16
- package/build/index.js +31 -0
- package/build/rules/allow-heading.d.ts +164 -115
- package/build/rules/allow-heading.js +125 -0
- package/build/rules/allow-image-url.d.ts +51 -45
- package/build/rules/allow-image-url.js +141 -0
- package/build/rules/allow-link-url.d.ts +51 -45
- package/build/rules/allow-link-url.js +141 -0
- package/build/rules/code-lang-shorthand.d.ts +39 -36
- package/build/rules/code-lang-shorthand.js +183 -0
- package/build/rules/consistent-code-style.d.ts +53 -53
- package/build/rules/consistent-code-style.js +198 -0
- package/build/rules/consistent-delete-style.d.ts +30 -27
- package/build/rules/consistent-delete-style.js +84 -0
- package/build/rules/consistent-emphasis-style.d.ts +30 -27
- package/build/rules/consistent-emphasis-style.js +82 -0
- package/build/rules/consistent-inline-code-style.d.ts +19 -16
- package/build/rules/consistent-inline-code-style.js +98 -0
- package/build/rules/consistent-strong-style.d.ts +30 -27
- package/build/rules/consistent-strong-style.js +82 -0
- package/build/rules/consistent-thematic-break-style.d.ts +30 -27
- package/build/rules/consistent-thematic-break-style.js +69 -0
- package/build/rules/consistent-unordered-list-style.d.ts +32 -29
- package/build/rules/consistent-unordered-list-style.js +110 -0
- package/build/rules/en-capitalization.d.ts +35 -33
- package/build/rules/en-capitalization.js +117 -0
- package/build/rules/endline-punctuation.js +2 -0
- package/{src → build}/rules/glossary.js +1 -0
- package/build/rules/index.d.ts +1375 -24
- package/{src → build}/rules/index.js +28 -31
- package/build/rules/no-bold-paragraph.d.ts +17 -15
- package/build/rules/no-bold-paragraph.js +48 -0
- package/build/rules/no-consecutive-blank-line.d.ts +43 -41
- package/build/rules/no-consecutive-blank-line.js +162 -0
- package/build/rules/no-control-character.d.ts +52 -48
- package/build/rules/no-control-character.js +123 -0
- package/build/rules/no-curly-quote.d.ts +44 -39
- package/build/rules/no-curly-quote.js +101 -0
- package/build/rules/no-double-punctuation.d.ts +40 -36
- package/build/rules/no-double-punctuation.js +125 -0
- package/build/rules/no-double-space.d.ts +32 -28
- package/build/rules/no-double-space.js +77 -0
- package/build/rules/no-emoji.d.ts +32 -29
- package/build/rules/no-emoji.js +75 -0
- package/build/rules/no-git-conflict-marker.d.ts +37 -36
- package/build/rules/no-git-conflict-marker.js +95 -0
- package/build/rules/no-irregular-dash.d.ts +49 -46
- package/build/rules/no-irregular-dash.js +108 -0
- package/build/rules/no-irregular-whitespace.d.ts +49 -46
- package/build/rules/no-irregular-whitespace.js +108 -0
- package/build/rules/no-tab.d.ts +48 -45
- package/build/rules/no-tab.js +104 -0
- package/build/rules/no-unmatched-pair.js +2 -0
- package/build/rules/no-url-trailing-slash.d.ts +18 -18
- package/build/rules/no-url-trailing-slash.js +131 -0
- package/build/rules/require-heading-id.d.ts +49 -46
- package/build/rules/require-heading-id.js +187 -0
- package/build/rules/require-image-title.d.ts +33 -30
- package/build/rules/require-image-title.js +99 -0
- package/build/rules/require-link-title.d.ts +33 -30
- package/build/rules/require-link-title.js +102 -0
- package/package.json +8 -11
- package/build/core/ast/html.d.ts +0 -11
- package/build/core/ast/is-blank-line.d.ts +0 -8
- package/src/configs/all.js +0 -67
- package/src/configs/base.js +0 -41
- package/src/configs/recommended.js +0 -50
- package/src/configs/stylistic.js +0 -52
- package/src/core/ast/html.js +0 -53
- package/src/core/ast/skip-ranges.js +0 -51
- package/src/core/types.ts +0 -35
- package/src/index.js +0 -54
- package/src/rules/allow-heading.js +0 -193
- package/src/rules/allow-image-url.js +0 -191
- package/src/rules/allow-link-url.js +0 -191
- package/src/rules/code-lang-shorthand.js +0 -225
- package/src/rules/consistent-code-style.js +0 -260
- package/src/rules/consistent-delete-style.js +0 -118
- package/src/rules/consistent-emphasis-style.js +0 -118
- package/src/rules/consistent-inline-code-style.js +0 -152
- package/src/rules/consistent-strong-style.js +0 -115
- package/src/rules/consistent-thematic-break-style.js +0 -103
- package/src/rules/consistent-unordered-list-style.js +0 -156
- package/src/rules/en-capitalization.js +0 -162
- package/src/rules/endline-punctuation.js +0 -1
- package/src/rules/no-bold-paragraph.js +0 -72
- package/src/rules/no-consecutive-blank-line.js +0 -199
- package/src/rules/no-control-character.js +0 -162
- package/src/rules/no-curly-quote.js +0 -144
- package/src/rules/no-double-punctuation.js +0 -171
- package/src/rules/no-double-space.js +0 -111
- package/src/rules/no-emoji.js +0 -104
- package/src/rules/no-git-conflict-marker.js +0 -133
- package/src/rules/no-irregular-dash.js +0 -143
- package/src/rules/no-irregular-whitespace.js +0 -144
- package/src/rules/no-tab.js +0 -142
- package/src/rules/no-unmatched-pair.js +0 -1
- package/src/rules/no-url-trailing-slash.js +0 -169
- package/src/rules/require-heading-id.js +0 -239
- package/src/rules/require-image-title.js +0 -145
- package/src/rules/require-link-title.js +0 -150
- /package/build/core/{ast → utils}/index.d.ts +0 -0
package/build/index.d.ts
CHANGED
|
@@ -1,17 +1,1394 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Entry file for the `eslint-markdown` package.
|
|
3
|
+
*/
|
|
4
|
+
import { all, base, recommended, stylistic } from './configs/index.js';
|
|
5
|
+
declare const plugin: {
|
|
6
|
+
readonly meta: {
|
|
7
|
+
readonly name: "eslint-markdown";
|
|
8
|
+
readonly version: string;
|
|
9
|
+
};
|
|
10
|
+
readonly rules: {
|
|
11
|
+
'allow-heading': {
|
|
12
|
+
readonly meta: {
|
|
13
|
+
readonly type: "problem";
|
|
14
|
+
readonly docs: {
|
|
15
|
+
readonly description: "Enforce the use of allowed or disallowed headings";
|
|
16
|
+
readonly url: string;
|
|
17
|
+
readonly recommended: false;
|
|
18
|
+
readonly stylistic: false;
|
|
19
|
+
};
|
|
20
|
+
readonly schema: [{
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly h1: {
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly allow: {
|
|
27
|
+
readonly type: "array";
|
|
28
|
+
readonly items: {
|
|
29
|
+
readonly type: "object";
|
|
30
|
+
};
|
|
31
|
+
readonly uniqueItems: true;
|
|
32
|
+
};
|
|
33
|
+
readonly disallow: {
|
|
34
|
+
readonly type: "array";
|
|
35
|
+
readonly items: {
|
|
36
|
+
readonly type: "object";
|
|
37
|
+
};
|
|
38
|
+
readonly uniqueItems: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly additionalProperties: false;
|
|
42
|
+
};
|
|
43
|
+
readonly h2: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly properties: {
|
|
46
|
+
readonly allow: {
|
|
47
|
+
readonly type: "array";
|
|
48
|
+
readonly items: {
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
};
|
|
51
|
+
readonly uniqueItems: true;
|
|
52
|
+
};
|
|
53
|
+
readonly disallow: {
|
|
54
|
+
readonly type: "array";
|
|
55
|
+
readonly items: {
|
|
56
|
+
readonly type: "object";
|
|
57
|
+
};
|
|
58
|
+
readonly uniqueItems: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
};
|
|
63
|
+
readonly h3: {
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly allow: {
|
|
67
|
+
readonly type: "array";
|
|
68
|
+
readonly items: {
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
};
|
|
71
|
+
readonly uniqueItems: true;
|
|
72
|
+
};
|
|
73
|
+
readonly disallow: {
|
|
74
|
+
readonly type: "array";
|
|
75
|
+
readonly items: {
|
|
76
|
+
readonly type: "object";
|
|
77
|
+
};
|
|
78
|
+
readonly uniqueItems: true;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly additionalProperties: false;
|
|
82
|
+
};
|
|
83
|
+
readonly h4: {
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly properties: {
|
|
86
|
+
readonly allow: {
|
|
87
|
+
readonly type: "array";
|
|
88
|
+
readonly items: {
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
};
|
|
91
|
+
readonly uniqueItems: true;
|
|
92
|
+
};
|
|
93
|
+
readonly disallow: {
|
|
94
|
+
readonly type: "array";
|
|
95
|
+
readonly items: {
|
|
96
|
+
readonly type: "object";
|
|
97
|
+
};
|
|
98
|
+
readonly uniqueItems: true;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly additionalProperties: false;
|
|
102
|
+
};
|
|
103
|
+
readonly h5: {
|
|
104
|
+
readonly type: "object";
|
|
105
|
+
readonly properties: {
|
|
106
|
+
readonly allow: {
|
|
107
|
+
readonly type: "array";
|
|
108
|
+
readonly items: {
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
};
|
|
111
|
+
readonly uniqueItems: true;
|
|
112
|
+
};
|
|
113
|
+
readonly disallow: {
|
|
114
|
+
readonly type: "array";
|
|
115
|
+
readonly items: {
|
|
116
|
+
readonly type: "object";
|
|
117
|
+
};
|
|
118
|
+
readonly uniqueItems: true;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
readonly additionalProperties: false;
|
|
122
|
+
};
|
|
123
|
+
readonly h6: {
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly allow: {
|
|
127
|
+
readonly type: "array";
|
|
128
|
+
readonly items: {
|
|
129
|
+
readonly type: "object";
|
|
130
|
+
};
|
|
131
|
+
readonly uniqueItems: true;
|
|
132
|
+
};
|
|
133
|
+
readonly disallow: {
|
|
134
|
+
readonly type: "array";
|
|
135
|
+
readonly items: {
|
|
136
|
+
readonly type: "object";
|
|
137
|
+
};
|
|
138
|
+
readonly uniqueItems: true;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly additionalProperties: false;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly additionalProperties: false;
|
|
145
|
+
}];
|
|
146
|
+
readonly defaultOptions: [{
|
|
147
|
+
readonly h1: {
|
|
148
|
+
readonly allow: [RegExp];
|
|
149
|
+
readonly disallow: [];
|
|
150
|
+
};
|
|
151
|
+
readonly h2: {
|
|
152
|
+
readonly allow: [RegExp];
|
|
153
|
+
readonly disallow: [];
|
|
154
|
+
};
|
|
155
|
+
readonly h3: {
|
|
156
|
+
readonly allow: [RegExp];
|
|
157
|
+
readonly disallow: [];
|
|
158
|
+
};
|
|
159
|
+
readonly h4: {
|
|
160
|
+
readonly allow: [RegExp];
|
|
161
|
+
readonly disallow: [];
|
|
162
|
+
};
|
|
163
|
+
readonly h5: {
|
|
164
|
+
readonly allow: [RegExp];
|
|
165
|
+
readonly disallow: [];
|
|
166
|
+
};
|
|
167
|
+
readonly h6: {
|
|
168
|
+
readonly allow: [RegExp];
|
|
169
|
+
readonly disallow: [];
|
|
170
|
+
};
|
|
171
|
+
}];
|
|
172
|
+
readonly messages: {
|
|
173
|
+
readonly allowHeading: "The level {{ depth }} heading `{{ heading }}` is not in the list of allowed headings. (Allow: {{ allow }}).";
|
|
174
|
+
readonly disallowHeading: "The level {{ depth }} heading `{{ heading }}` is in the list of disallowed headings. (Disallow: {{ disallow }}).";
|
|
175
|
+
};
|
|
176
|
+
readonly language: "markdown";
|
|
177
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
178
|
+
};
|
|
179
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
180
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
181
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
182
|
+
RuleOptions: [Record<"h1" | "h2" | "h3" | "h4" | "h5" | "h6", import("./rules/allow-heading.js").HeadingOptions>];
|
|
183
|
+
Node: import("mdast").Node;
|
|
184
|
+
MessageIds: "allowHeading" | "disallowHeading";
|
|
185
|
+
}>) => {
|
|
186
|
+
heading(node: import("mdast").Heading): void;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
'allow-image-url': {
|
|
190
|
+
readonly meta: {
|
|
191
|
+
readonly type: "problem";
|
|
192
|
+
readonly docs: {
|
|
193
|
+
readonly description: "Enforce the use of allowed or disallowed URLs for images";
|
|
194
|
+
readonly url: string;
|
|
195
|
+
readonly recommended: false;
|
|
196
|
+
readonly stylistic: false;
|
|
197
|
+
};
|
|
198
|
+
readonly schema: [{
|
|
199
|
+
readonly type: "object";
|
|
200
|
+
readonly properties: {
|
|
201
|
+
readonly allowUrls: {
|
|
202
|
+
readonly type: "array";
|
|
203
|
+
readonly items: {
|
|
204
|
+
readonly type: "object";
|
|
205
|
+
};
|
|
206
|
+
readonly uniqueItems: true;
|
|
207
|
+
};
|
|
208
|
+
readonly disallowUrls: {
|
|
209
|
+
readonly type: "array";
|
|
210
|
+
readonly items: {
|
|
211
|
+
readonly type: "object";
|
|
212
|
+
};
|
|
213
|
+
readonly uniqueItems: true;
|
|
214
|
+
};
|
|
215
|
+
readonly allowDefinitions: {
|
|
216
|
+
readonly type: "array";
|
|
217
|
+
readonly items: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
readonly uniqueItems: true;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly additionalProperties: false;
|
|
224
|
+
}];
|
|
225
|
+
readonly defaultOptions: [{
|
|
226
|
+
readonly allowUrls: [RegExp];
|
|
227
|
+
readonly disallowUrls: [];
|
|
228
|
+
readonly allowDefinitions: ["//"];
|
|
229
|
+
}];
|
|
230
|
+
readonly messages: {
|
|
231
|
+
readonly allowImageUrl: "The URL `{{ url }}` is not in the list of allowed URLs. (Allow: {{ patterns }}).";
|
|
232
|
+
readonly disallowImageUrl: "The URL `{{ url }}` is in the list of disallowed URLs. (Disallow: {{ patterns }}).";
|
|
233
|
+
};
|
|
234
|
+
readonly language: "markdown";
|
|
235
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
236
|
+
};
|
|
237
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
238
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
239
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
240
|
+
RuleOptions: [{
|
|
241
|
+
allowUrls: RegExp[];
|
|
242
|
+
disallowUrls: RegExp[];
|
|
243
|
+
allowDefinitions: string[];
|
|
244
|
+
}];
|
|
245
|
+
Node: import("mdast").Node;
|
|
246
|
+
MessageIds: "allowImageUrl" | "disallowImageUrl";
|
|
247
|
+
}>) => {
|
|
248
|
+
image(node: import("mdast").Image): void;
|
|
249
|
+
html(node: import("mdast").Html): void;
|
|
250
|
+
imageReference(node: import("mdast").ImageReference): void;
|
|
251
|
+
definition(node: import("mdast").Definition): void;
|
|
252
|
+
'root:exit'(): void;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
'allow-link-url': {
|
|
256
|
+
readonly meta: {
|
|
257
|
+
readonly type: "problem";
|
|
258
|
+
readonly docs: {
|
|
259
|
+
readonly description: "Enforce the use of allowed or disallowed URLs for links";
|
|
260
|
+
readonly url: string;
|
|
261
|
+
readonly recommended: false;
|
|
262
|
+
readonly stylistic: false;
|
|
263
|
+
};
|
|
264
|
+
readonly schema: [{
|
|
265
|
+
readonly type: "object";
|
|
266
|
+
readonly properties: {
|
|
267
|
+
readonly allowUrls: {
|
|
268
|
+
readonly type: "array";
|
|
269
|
+
readonly items: {
|
|
270
|
+
readonly type: "object";
|
|
271
|
+
};
|
|
272
|
+
readonly uniqueItems: true;
|
|
273
|
+
};
|
|
274
|
+
readonly disallowUrls: {
|
|
275
|
+
readonly type: "array";
|
|
276
|
+
readonly items: {
|
|
277
|
+
readonly type: "object";
|
|
278
|
+
};
|
|
279
|
+
readonly uniqueItems: true;
|
|
280
|
+
};
|
|
281
|
+
readonly allowDefinitions: {
|
|
282
|
+
readonly type: "array";
|
|
283
|
+
readonly items: {
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
};
|
|
286
|
+
readonly uniqueItems: true;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly additionalProperties: false;
|
|
290
|
+
}];
|
|
291
|
+
readonly defaultOptions: [{
|
|
292
|
+
readonly allowUrls: [RegExp];
|
|
293
|
+
readonly disallowUrls: [];
|
|
294
|
+
readonly allowDefinitions: ["//"];
|
|
295
|
+
}];
|
|
296
|
+
readonly messages: {
|
|
297
|
+
readonly allowLinkUrl: "The URL `{{ url }}` is not in the list of allowed URLs. (Allow: {{ patterns }}).";
|
|
298
|
+
readonly disallowLinkUrl: "The URL `{{ url }}` is in the list of disallowed URLs. (Disallow: {{ patterns }}).";
|
|
299
|
+
};
|
|
300
|
+
readonly language: "markdown";
|
|
301
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
302
|
+
};
|
|
303
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
304
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
305
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
306
|
+
RuleOptions: [{
|
|
307
|
+
allowUrls: RegExp[];
|
|
308
|
+
disallowUrls: RegExp[];
|
|
309
|
+
allowDefinitions: string[];
|
|
310
|
+
}];
|
|
311
|
+
Node: import("mdast").Node;
|
|
312
|
+
MessageIds: "allowLinkUrl" | "disallowLinkUrl";
|
|
313
|
+
}>) => {
|
|
314
|
+
link(node: import("mdast").Link): void;
|
|
315
|
+
html(node: import("mdast").Html): void;
|
|
316
|
+
linkReference(node: import("mdast").LinkReference): void;
|
|
317
|
+
definition(node: import("mdast").Definition): void;
|
|
318
|
+
'root:exit'(): void;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
'code-lang-shorthand': {
|
|
322
|
+
readonly meta: {
|
|
323
|
+
readonly type: "problem";
|
|
324
|
+
readonly docs: {
|
|
325
|
+
readonly description: "Enforce the use of shorthand for code block language identifiers";
|
|
326
|
+
readonly url: string;
|
|
327
|
+
readonly recommended: true;
|
|
328
|
+
readonly stylistic: false;
|
|
329
|
+
};
|
|
330
|
+
readonly fixable: "code";
|
|
331
|
+
readonly schema: [{
|
|
332
|
+
readonly type: "object";
|
|
333
|
+
readonly properties: {
|
|
334
|
+
readonly allow: {
|
|
335
|
+
readonly type: "array";
|
|
336
|
+
readonly items: {
|
|
337
|
+
readonly type: "string";
|
|
338
|
+
};
|
|
339
|
+
readonly uniqueItems: true;
|
|
340
|
+
};
|
|
341
|
+
readonly override: {
|
|
342
|
+
readonly type: "object";
|
|
343
|
+
readonly additionalProperties: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly additionalProperties: false;
|
|
349
|
+
}];
|
|
350
|
+
readonly defaultOptions: [{
|
|
351
|
+
readonly allow: [];
|
|
352
|
+
readonly override: {};
|
|
353
|
+
}];
|
|
354
|
+
readonly messages: {
|
|
355
|
+
readonly codeLangShorthand: "`{{ lang }}` should be shortened to `{{ langShorthand }}`.";
|
|
356
|
+
};
|
|
357
|
+
readonly language: "markdown";
|
|
358
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
359
|
+
};
|
|
360
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
361
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
362
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
363
|
+
RuleOptions: [{
|
|
364
|
+
allow: string[];
|
|
365
|
+
override: Record<string, string>;
|
|
366
|
+
}];
|
|
367
|
+
Node: import("mdast").Node;
|
|
368
|
+
MessageIds: "codeLangShorthand";
|
|
369
|
+
}>) => {
|
|
370
|
+
code(node: import("mdast").Code): void;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
'consistent-code-style': {
|
|
374
|
+
readonly meta: {
|
|
375
|
+
readonly type: "layout";
|
|
376
|
+
readonly docs: {
|
|
377
|
+
readonly description: "Enforce consistent code style";
|
|
378
|
+
readonly url: string;
|
|
379
|
+
readonly recommended: false;
|
|
380
|
+
readonly stylistic: true;
|
|
381
|
+
};
|
|
382
|
+
readonly schema: [{
|
|
383
|
+
readonly type: "object";
|
|
384
|
+
readonly properties: {
|
|
385
|
+
readonly style: {
|
|
386
|
+
readonly enum: ["consistent", "indent", "fence-backtick", "fence-tilde"];
|
|
387
|
+
};
|
|
388
|
+
readonly blankLineAbove: {
|
|
389
|
+
readonly oneOf: [{
|
|
390
|
+
readonly enum: [false];
|
|
391
|
+
}, {
|
|
392
|
+
readonly type: "integer";
|
|
393
|
+
readonly minimum: 1;
|
|
394
|
+
}];
|
|
395
|
+
};
|
|
396
|
+
readonly blankLineBelow: {
|
|
397
|
+
readonly oneOf: [{
|
|
398
|
+
readonly enum: [false];
|
|
399
|
+
}, {
|
|
400
|
+
readonly type: "integer";
|
|
401
|
+
readonly minimum: 1;
|
|
402
|
+
}];
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
readonly additionalProperties: false;
|
|
406
|
+
}];
|
|
407
|
+
readonly defaultOptions: [{
|
|
408
|
+
readonly style: "consistent";
|
|
409
|
+
readonly blankLineAbove: false;
|
|
410
|
+
readonly blankLineBelow: false;
|
|
411
|
+
}];
|
|
412
|
+
readonly messages: {
|
|
413
|
+
readonly style: "Code style should be `{{ style }}`.";
|
|
414
|
+
readonly blankLineAbove: "Code should be surrounded by {{ blankLineAbove }} blank line(s) above.";
|
|
415
|
+
readonly blankLineBelow: "Code should be surrounded by {{ blankLineBelow }} blank line(s) below.";
|
|
416
|
+
};
|
|
417
|
+
readonly language: "markdown";
|
|
418
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
419
|
+
};
|
|
420
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
421
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
422
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
423
|
+
RuleOptions: [{
|
|
424
|
+
style: "consistent" | ("indent" | "fence-backtick" | "fence-tilde");
|
|
425
|
+
blankLineAbove: number | false;
|
|
426
|
+
blankLineBelow: number | false;
|
|
427
|
+
}];
|
|
428
|
+
Node: import("mdast").Node;
|
|
429
|
+
MessageIds: "style" | "blankLineAbove" | "blankLineBelow";
|
|
430
|
+
}>) => {
|
|
431
|
+
blockquote(): void;
|
|
432
|
+
code(node: import("mdast").Code): void;
|
|
433
|
+
'blockquote:exit'(): void;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
'consistent-delete-style': {
|
|
437
|
+
readonly meta: {
|
|
438
|
+
readonly type: "layout";
|
|
439
|
+
readonly docs: {
|
|
440
|
+
readonly description: "Enforce consistent delete style";
|
|
441
|
+
readonly url: string;
|
|
442
|
+
readonly recommended: false;
|
|
443
|
+
readonly stylistic: true;
|
|
444
|
+
};
|
|
445
|
+
readonly fixable: "code";
|
|
446
|
+
readonly schema: [{
|
|
447
|
+
readonly type: "object";
|
|
448
|
+
readonly properties: {
|
|
449
|
+
readonly style: {
|
|
450
|
+
readonly enum: ["consistent", "~", "~~"];
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly additionalProperties: false;
|
|
454
|
+
}];
|
|
455
|
+
readonly defaultOptions: [{
|
|
456
|
+
readonly style: "consistent";
|
|
457
|
+
}];
|
|
458
|
+
readonly messages: {
|
|
459
|
+
readonly style: "Delete style should be `{{ style }}`.";
|
|
460
|
+
};
|
|
461
|
+
readonly language: "markdown";
|
|
462
|
+
readonly dialects: ["gfm"];
|
|
463
|
+
};
|
|
464
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
465
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
466
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
467
|
+
RuleOptions: [{
|
|
468
|
+
style: "consistent" | "~" | "~~";
|
|
469
|
+
}];
|
|
470
|
+
Node: import("mdast").Node;
|
|
471
|
+
MessageIds: "style";
|
|
472
|
+
}>) => {
|
|
473
|
+
delete(node: import("mdast").Delete): void;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
'consistent-emphasis-style': {
|
|
477
|
+
readonly meta: {
|
|
478
|
+
readonly type: "layout";
|
|
479
|
+
readonly docs: {
|
|
480
|
+
readonly description: "Enforce consistent emphasis style";
|
|
481
|
+
readonly url: string;
|
|
482
|
+
readonly recommended: false;
|
|
483
|
+
readonly stylistic: true;
|
|
484
|
+
};
|
|
485
|
+
readonly fixable: "code";
|
|
486
|
+
readonly schema: [{
|
|
487
|
+
readonly type: "object";
|
|
488
|
+
readonly properties: {
|
|
489
|
+
readonly style: {
|
|
490
|
+
readonly enum: ["consistent", "*", "_"];
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
readonly additionalProperties: false;
|
|
494
|
+
}];
|
|
495
|
+
readonly defaultOptions: [{
|
|
496
|
+
readonly style: "consistent";
|
|
497
|
+
}];
|
|
498
|
+
readonly messages: {
|
|
499
|
+
readonly style: "Emphasis style should be `{{ style }}`.";
|
|
500
|
+
};
|
|
501
|
+
readonly language: "markdown";
|
|
502
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
503
|
+
};
|
|
504
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
505
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
506
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
507
|
+
RuleOptions: [{
|
|
508
|
+
style: "consistent" | "*" | "_";
|
|
509
|
+
}];
|
|
510
|
+
Node: import("mdast").Node;
|
|
511
|
+
MessageIds: "style";
|
|
512
|
+
}>) => {
|
|
513
|
+
emphasis(node: import("mdast").Emphasis): void;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
'consistent-inline-code-style': {
|
|
517
|
+
readonly meta: {
|
|
518
|
+
readonly type: "layout";
|
|
519
|
+
readonly docs: {
|
|
520
|
+
readonly description: "Enforce consistent inline code style";
|
|
521
|
+
readonly url: string;
|
|
522
|
+
readonly recommended: false;
|
|
523
|
+
readonly stylistic: true;
|
|
524
|
+
};
|
|
525
|
+
readonly fixable: "whitespace";
|
|
526
|
+
readonly messages: {
|
|
527
|
+
readonly style: "Inline code should not have extra spaces or tabs next to backticks.";
|
|
528
|
+
};
|
|
529
|
+
readonly language: "markdown";
|
|
530
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
531
|
+
};
|
|
532
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
533
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
534
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
535
|
+
RuleOptions: [];
|
|
536
|
+
Node: import("mdast").Node;
|
|
537
|
+
MessageIds: "style";
|
|
538
|
+
}>) => {
|
|
539
|
+
inlineCode(node: import("mdast").InlineCode): void;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
'consistent-strong-style': {
|
|
543
|
+
readonly meta: {
|
|
544
|
+
readonly type: "layout";
|
|
545
|
+
readonly docs: {
|
|
546
|
+
readonly description: "Enforce consistent strong style";
|
|
547
|
+
readonly url: string;
|
|
548
|
+
readonly recommended: false;
|
|
549
|
+
readonly stylistic: true;
|
|
550
|
+
};
|
|
551
|
+
readonly fixable: "code";
|
|
552
|
+
readonly schema: [{
|
|
553
|
+
readonly type: "object";
|
|
554
|
+
readonly properties: {
|
|
555
|
+
readonly style: {
|
|
556
|
+
readonly enum: ["consistent", "*", "_"];
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
readonly additionalProperties: false;
|
|
560
|
+
}];
|
|
561
|
+
readonly defaultOptions: [{
|
|
562
|
+
readonly style: "consistent";
|
|
563
|
+
}];
|
|
564
|
+
readonly messages: {
|
|
565
|
+
readonly style: "Strong style should be `{{ style }}`.";
|
|
566
|
+
};
|
|
567
|
+
readonly language: "markdown";
|
|
568
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
569
|
+
};
|
|
570
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
571
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
572
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
573
|
+
RuleOptions: [{
|
|
574
|
+
style: "consistent" | "*" | "_";
|
|
575
|
+
}];
|
|
576
|
+
Node: import("mdast").Node;
|
|
577
|
+
MessageIds: "style";
|
|
578
|
+
}>) => {
|
|
579
|
+
strong(node: import("mdast").Strong): void;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
'consistent-thematic-break-style': {
|
|
583
|
+
readonly meta: {
|
|
584
|
+
readonly type: "layout";
|
|
585
|
+
readonly docs: {
|
|
586
|
+
readonly description: "Enforce consistent thematic break style";
|
|
587
|
+
readonly url: string;
|
|
588
|
+
readonly recommended: false;
|
|
589
|
+
readonly stylistic: true;
|
|
590
|
+
};
|
|
591
|
+
readonly fixable: "code";
|
|
592
|
+
readonly schema: [{
|
|
593
|
+
readonly type: "object";
|
|
594
|
+
readonly properties: {
|
|
595
|
+
readonly style: {
|
|
596
|
+
readonly type: "string";
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
readonly additionalProperties: false;
|
|
600
|
+
}];
|
|
601
|
+
readonly defaultOptions: [{
|
|
602
|
+
readonly style: "consistent";
|
|
603
|
+
}];
|
|
604
|
+
readonly messages: {
|
|
605
|
+
readonly style: "Thematic break style should be `{{ style }}`.";
|
|
606
|
+
};
|
|
607
|
+
readonly language: "markdown";
|
|
608
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
609
|
+
};
|
|
610
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
611
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
612
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
613
|
+
RuleOptions: [{
|
|
614
|
+
style: string;
|
|
615
|
+
}];
|
|
616
|
+
Node: import("mdast").Node;
|
|
617
|
+
MessageIds: "style";
|
|
618
|
+
}>) => {
|
|
619
|
+
thematicBreak(node: import("mdast").ThematicBreak): void;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
'consistent-unordered-list-style': {
|
|
623
|
+
readonly meta: {
|
|
624
|
+
readonly type: "layout";
|
|
625
|
+
readonly docs: {
|
|
626
|
+
readonly description: "Enforce consistent unordered list style";
|
|
627
|
+
readonly url: string;
|
|
628
|
+
readonly recommended: false;
|
|
629
|
+
readonly stylistic: true;
|
|
630
|
+
};
|
|
631
|
+
readonly fixable: "code";
|
|
632
|
+
readonly schema: [{
|
|
633
|
+
readonly type: "object";
|
|
634
|
+
readonly properties: {
|
|
635
|
+
readonly style: {
|
|
636
|
+
readonly enum: ["consistent", "sublist", "*", "+", "-"];
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
readonly additionalProperties: false;
|
|
640
|
+
}];
|
|
641
|
+
readonly defaultOptions: [{
|
|
642
|
+
readonly style: "consistent";
|
|
643
|
+
}];
|
|
644
|
+
readonly messages: {
|
|
645
|
+
readonly style: "Unordered list style should be `{{ style }}`.";
|
|
646
|
+
};
|
|
647
|
+
readonly language: "markdown";
|
|
648
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
649
|
+
};
|
|
650
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
651
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
652
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
653
|
+
RuleOptions: [{
|
|
654
|
+
style: "consistent" | "sublist" | ("*" | "+" | "-");
|
|
655
|
+
}];
|
|
656
|
+
Node: import("mdast").Node;
|
|
657
|
+
MessageIds: "style";
|
|
658
|
+
}>) => {
|
|
659
|
+
list(): void;
|
|
660
|
+
'list[ordered=false] > listItem'(node: import("mdast").ListItem): void;
|
|
661
|
+
'list:exit'(): void;
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
'no-consecutive-blank-line': {
|
|
665
|
+
readonly meta: {
|
|
666
|
+
readonly type: "layout";
|
|
667
|
+
readonly docs: {
|
|
668
|
+
readonly description: "Disallow consecutive blank lines";
|
|
669
|
+
readonly url: string;
|
|
670
|
+
readonly recommended: false;
|
|
671
|
+
readonly stylistic: true;
|
|
672
|
+
};
|
|
673
|
+
readonly fixable: "whitespace";
|
|
674
|
+
readonly schema: [{
|
|
675
|
+
readonly type: "object";
|
|
676
|
+
readonly properties: {
|
|
677
|
+
readonly max: {
|
|
678
|
+
readonly type: "integer";
|
|
679
|
+
readonly minimum: 1;
|
|
680
|
+
};
|
|
681
|
+
readonly skipCode: {
|
|
682
|
+
readonly oneOf: [{
|
|
683
|
+
readonly type: "boolean";
|
|
684
|
+
}, {
|
|
685
|
+
readonly type: "array";
|
|
686
|
+
readonly items: {
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
};
|
|
689
|
+
readonly uniqueItems: true;
|
|
690
|
+
}];
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
readonly additionalProperties: false;
|
|
694
|
+
}];
|
|
695
|
+
readonly defaultOptions: [{
|
|
696
|
+
readonly max: 1;
|
|
697
|
+
readonly skipCode: true;
|
|
698
|
+
}];
|
|
699
|
+
readonly messages: {
|
|
700
|
+
readonly noConsecutiveBlankLine: "More than {{ max }} consecutive blank line(s) are not allowed.";
|
|
701
|
+
};
|
|
702
|
+
readonly language: "markdown";
|
|
703
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
704
|
+
};
|
|
705
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
706
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
707
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
708
|
+
RuleOptions: [{
|
|
709
|
+
max: number;
|
|
710
|
+
skipCode: boolean | string[];
|
|
711
|
+
}];
|
|
712
|
+
Node: import("mdast").Node;
|
|
713
|
+
MessageIds: "noConsecutiveBlankLine";
|
|
714
|
+
}>) => {
|
|
715
|
+
code(node: import("mdast").Code): void;
|
|
716
|
+
'root:exit'(): void;
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
'no-control-character': {
|
|
720
|
+
readonly meta: {
|
|
721
|
+
readonly type: "problem";
|
|
722
|
+
readonly docs: {
|
|
723
|
+
readonly description: "Disallow control character";
|
|
724
|
+
readonly url: string;
|
|
725
|
+
readonly recommended: true;
|
|
726
|
+
readonly stylistic: false;
|
|
727
|
+
};
|
|
728
|
+
readonly hasSuggestions: true;
|
|
729
|
+
readonly schema: [{
|
|
730
|
+
readonly type: "object";
|
|
731
|
+
readonly properties: {
|
|
732
|
+
readonly allow: {
|
|
733
|
+
readonly type: "array";
|
|
734
|
+
readonly items: {
|
|
735
|
+
readonly type: "string";
|
|
736
|
+
};
|
|
737
|
+
readonly uniqueItems: true;
|
|
738
|
+
};
|
|
739
|
+
readonly skipCode: {
|
|
740
|
+
readonly oneOf: [{
|
|
741
|
+
readonly type: "boolean";
|
|
742
|
+
}, {
|
|
743
|
+
readonly type: "array";
|
|
744
|
+
readonly items: {
|
|
745
|
+
readonly type: "string";
|
|
746
|
+
};
|
|
747
|
+
readonly uniqueItems: true;
|
|
748
|
+
}];
|
|
749
|
+
};
|
|
750
|
+
readonly skipInlineCode: {
|
|
751
|
+
readonly type: "boolean";
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
readonly additionalProperties: false;
|
|
755
|
+
}];
|
|
756
|
+
readonly defaultOptions: [{
|
|
757
|
+
readonly allow: [];
|
|
758
|
+
readonly skipCode: true;
|
|
759
|
+
readonly skipInlineCode: true;
|
|
760
|
+
}];
|
|
761
|
+
readonly messages: {
|
|
762
|
+
readonly noControlCharacter: "Control character `{{ controlCharacter }}` is not allowed.";
|
|
763
|
+
readonly suggestRemove: "Remove control character `{{ controlCharacter }}`.";
|
|
764
|
+
};
|
|
765
|
+
readonly language: "markdown";
|
|
766
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
767
|
+
};
|
|
768
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
769
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
770
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
771
|
+
RuleOptions: [{
|
|
772
|
+
allow: string[];
|
|
773
|
+
skipCode: boolean | string[];
|
|
774
|
+
skipInlineCode: boolean;
|
|
775
|
+
}];
|
|
776
|
+
Node: import("mdast").Node;
|
|
777
|
+
MessageIds: "noControlCharacter" | "suggestRemove";
|
|
778
|
+
}>) => {
|
|
779
|
+
code(node: import("mdast").Code): void;
|
|
780
|
+
inlineCode(node: import("mdast").InlineCode): void;
|
|
781
|
+
'root:exit'(): void;
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
'no-curly-quote': {
|
|
785
|
+
readonly meta: {
|
|
786
|
+
readonly type: "problem";
|
|
787
|
+
readonly docs: {
|
|
788
|
+
readonly description: "Disallow curly quotes(`“`, `”`, `‘` or `’`) in text";
|
|
789
|
+
readonly url: string;
|
|
790
|
+
readonly recommended: true;
|
|
791
|
+
readonly stylistic: false;
|
|
792
|
+
};
|
|
793
|
+
readonly fixable: "code";
|
|
794
|
+
readonly schema: [{
|
|
795
|
+
readonly type: "object";
|
|
796
|
+
readonly properties: {
|
|
797
|
+
readonly checkLeftDoubleQuotationMark: {
|
|
798
|
+
readonly type: "boolean";
|
|
799
|
+
};
|
|
800
|
+
readonly checkRightDoubleQuotationMark: {
|
|
801
|
+
readonly type: "boolean";
|
|
802
|
+
};
|
|
803
|
+
readonly checkLeftSingleQuotationMark: {
|
|
804
|
+
readonly type: "boolean";
|
|
805
|
+
};
|
|
806
|
+
readonly checkRightSingleQuotationMark: {
|
|
807
|
+
readonly type: "boolean";
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
readonly additionalProperties: false;
|
|
811
|
+
}];
|
|
812
|
+
readonly defaultOptions: [{
|
|
813
|
+
readonly checkLeftDoubleQuotationMark: true;
|
|
814
|
+
readonly checkRightDoubleQuotationMark: true;
|
|
815
|
+
readonly checkLeftSingleQuotationMark: true;
|
|
816
|
+
readonly checkRightSingleQuotationMark: true;
|
|
817
|
+
}];
|
|
818
|
+
readonly messages: {
|
|
819
|
+
readonly noCurlyQuote: "Curly quotes(`“`, `”`, `‘` or `’`) are not allowed. Use straight quotes(`\"` or `'`) instead.";
|
|
820
|
+
};
|
|
821
|
+
readonly language: "markdown";
|
|
822
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
823
|
+
};
|
|
824
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
825
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
826
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
827
|
+
RuleOptions: [{
|
|
828
|
+
checkLeftDoubleQuotationMark: boolean;
|
|
829
|
+
checkRightDoubleQuotationMark: boolean;
|
|
830
|
+
checkLeftSingleQuotationMark: boolean;
|
|
831
|
+
checkRightSingleQuotationMark: boolean;
|
|
832
|
+
}];
|
|
833
|
+
Node: import("mdast").Node;
|
|
834
|
+
MessageIds: "noCurlyQuote";
|
|
835
|
+
}>) => {
|
|
836
|
+
text(node: import("mdast").Text): void;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
'no-double-punctuation': {
|
|
840
|
+
readonly meta: {
|
|
841
|
+
readonly type: "problem";
|
|
842
|
+
readonly docs: {
|
|
843
|
+
readonly description: "Disallow double consecutive punctuation in text";
|
|
844
|
+
readonly url: string;
|
|
845
|
+
readonly recommended: false;
|
|
846
|
+
readonly stylistic: false;
|
|
847
|
+
};
|
|
848
|
+
readonly fixable: "code";
|
|
849
|
+
readonly hasSuggestions: true;
|
|
850
|
+
readonly schema: [{
|
|
851
|
+
readonly type: "object";
|
|
852
|
+
readonly properties: {
|
|
853
|
+
readonly allow: {
|
|
854
|
+
readonly type: "array";
|
|
855
|
+
readonly items: {
|
|
856
|
+
readonly type: "string";
|
|
857
|
+
readonly minLength: 2;
|
|
858
|
+
readonly maxLength: 2;
|
|
859
|
+
readonly pattern: "^[!,.:;?]{2}$";
|
|
860
|
+
};
|
|
861
|
+
readonly uniqueItems: true;
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
readonly additionalProperties: false;
|
|
865
|
+
}];
|
|
866
|
+
readonly defaultOptions: [{
|
|
867
|
+
readonly allow: [];
|
|
868
|
+
}];
|
|
869
|
+
readonly messages: {
|
|
870
|
+
readonly noDoublePunctuation: "Double punctuation mark `{{ punctuation }}` is not allowed.";
|
|
871
|
+
readonly suggestReplaceWithLeft: "Replace `{{ punctuation }}` with the left punctuation mark `{{ leftPunctuation }}`.";
|
|
872
|
+
readonly suggestReplaceWithRight: "Replace `{{ punctuation }}` with the right punctuation mark `{{ rightPunctuation }}`.";
|
|
873
|
+
};
|
|
874
|
+
readonly language: "markdown";
|
|
875
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
876
|
+
};
|
|
877
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
878
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
879
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
880
|
+
RuleOptions: [{
|
|
881
|
+
allow: string[];
|
|
882
|
+
}];
|
|
883
|
+
Node: import("mdast").Node;
|
|
884
|
+
MessageIds: "noDoublePunctuation" | "suggestReplaceWithLeft" | "suggestReplaceWithRight";
|
|
885
|
+
}>) => {
|
|
886
|
+
text(node: import("mdast").Text): void;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
'no-double-space': {
|
|
890
|
+
readonly meta: {
|
|
891
|
+
readonly type: "problem";
|
|
892
|
+
readonly docs: {
|
|
893
|
+
readonly description: "Disallow double or multiple consecutive spaces in text, except for leading and trailing spaces";
|
|
894
|
+
readonly url: string;
|
|
895
|
+
readonly recommended: true;
|
|
896
|
+
readonly stylistic: false;
|
|
897
|
+
};
|
|
898
|
+
readonly fixable: "whitespace";
|
|
899
|
+
readonly schema: [{
|
|
900
|
+
readonly type: "object";
|
|
901
|
+
readonly properties: {
|
|
902
|
+
readonly checkMultipleSpace: {
|
|
903
|
+
readonly type: "boolean";
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
readonly additionalProperties: false;
|
|
907
|
+
}];
|
|
908
|
+
readonly defaultOptions: [{
|
|
909
|
+
readonly checkMultipleSpace: false;
|
|
910
|
+
}];
|
|
911
|
+
readonly messages: {
|
|
912
|
+
readonly noDoubleSpace: "Double spaces are not allowed except for leading and trailing spaces.";
|
|
913
|
+
readonly noMultipleSpace: "Multiple spaces are not allowed except for leading and trailing spaces.";
|
|
914
|
+
};
|
|
915
|
+
readonly language: "markdown";
|
|
916
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
917
|
+
};
|
|
918
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
919
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
920
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
921
|
+
RuleOptions: [{
|
|
922
|
+
checkMultipleSpace: boolean;
|
|
923
|
+
}];
|
|
924
|
+
Node: import("mdast").Node;
|
|
925
|
+
MessageIds: "noDoubleSpace" | "noMultipleSpace";
|
|
926
|
+
}>) => {
|
|
927
|
+
text(node: import("mdast").Text): void;
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
'no-emoji': {
|
|
931
|
+
readonly meta: {
|
|
932
|
+
readonly type: "problem";
|
|
933
|
+
readonly docs: {
|
|
934
|
+
readonly description: "Disallow emojis in text";
|
|
935
|
+
readonly url: string;
|
|
936
|
+
readonly recommended: false;
|
|
937
|
+
readonly stylistic: false;
|
|
938
|
+
};
|
|
939
|
+
readonly schema: [{
|
|
940
|
+
readonly type: "object";
|
|
941
|
+
readonly properties: {
|
|
942
|
+
readonly allow: {
|
|
943
|
+
readonly type: "array";
|
|
944
|
+
readonly items: {
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
};
|
|
947
|
+
readonly uniqueItems: true;
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
readonly additionalProperties: false;
|
|
951
|
+
}];
|
|
952
|
+
readonly defaultOptions: [{
|
|
953
|
+
readonly allow: [];
|
|
954
|
+
}];
|
|
955
|
+
readonly messages: {
|
|
956
|
+
readonly noEmoji: "Emojis are not allowed.";
|
|
957
|
+
};
|
|
958
|
+
readonly language: "markdown";
|
|
959
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
960
|
+
};
|
|
961
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
962
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
963
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
964
|
+
RuleOptions: [{
|
|
965
|
+
allow: string[];
|
|
966
|
+
}];
|
|
967
|
+
Node: import("mdast").Node;
|
|
968
|
+
MessageIds: "noEmoji";
|
|
969
|
+
}>) => {
|
|
970
|
+
text(node: import("mdast").Text): void;
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
'no-git-conflict-marker': {
|
|
974
|
+
readonly meta: {
|
|
975
|
+
readonly type: "problem";
|
|
976
|
+
readonly docs: {
|
|
977
|
+
readonly description: "Disallow git conflict markers";
|
|
978
|
+
readonly url: string;
|
|
979
|
+
readonly recommended: true;
|
|
980
|
+
readonly stylistic: false;
|
|
981
|
+
};
|
|
982
|
+
readonly fixable: "code";
|
|
983
|
+
readonly schema: [{
|
|
984
|
+
readonly type: "object";
|
|
985
|
+
readonly properties: {
|
|
986
|
+
readonly skipCode: {
|
|
987
|
+
readonly oneOf: [{
|
|
988
|
+
readonly type: "boolean";
|
|
989
|
+
}, {
|
|
990
|
+
readonly type: "array";
|
|
991
|
+
readonly items: {
|
|
992
|
+
readonly type: "string";
|
|
993
|
+
};
|
|
994
|
+
readonly uniqueItems: true;
|
|
995
|
+
}];
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
readonly additionalProperties: false;
|
|
999
|
+
}];
|
|
1000
|
+
readonly defaultOptions: [{
|
|
1001
|
+
readonly skipCode: true;
|
|
1002
|
+
}];
|
|
1003
|
+
readonly messages: {
|
|
1004
|
+
readonly noGitConflictMarker: "Git conflict marker `{{ gitConflictMarker }}` is not allowed.";
|
|
1005
|
+
};
|
|
1006
|
+
readonly language: "markdown";
|
|
1007
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1008
|
+
};
|
|
1009
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1010
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1011
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1012
|
+
RuleOptions: [{
|
|
1013
|
+
skipCode: boolean | string[];
|
|
1014
|
+
}];
|
|
1015
|
+
Node: import("mdast").Node;
|
|
1016
|
+
MessageIds: "noGitConflictMarker";
|
|
1017
|
+
}>) => {
|
|
1018
|
+
code(node: import("mdast").Code): void;
|
|
1019
|
+
'root:exit'(): void;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
'no-irregular-dash': {
|
|
1023
|
+
readonly meta: {
|
|
1024
|
+
readonly type: "problem";
|
|
1025
|
+
readonly docs: {
|
|
1026
|
+
readonly description: "Disallow irregular dash";
|
|
1027
|
+
readonly url: string;
|
|
1028
|
+
readonly recommended: true;
|
|
1029
|
+
readonly stylistic: false;
|
|
1030
|
+
};
|
|
1031
|
+
readonly schema: [{
|
|
1032
|
+
readonly type: "object";
|
|
1033
|
+
readonly properties: {
|
|
1034
|
+
readonly allow: {
|
|
1035
|
+
readonly type: "array";
|
|
1036
|
+
readonly items: {
|
|
1037
|
+
readonly type: "string";
|
|
1038
|
+
};
|
|
1039
|
+
readonly uniqueItems: true;
|
|
1040
|
+
};
|
|
1041
|
+
readonly skipCode: {
|
|
1042
|
+
readonly oneOf: [{
|
|
1043
|
+
readonly type: "boolean";
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly type: "array";
|
|
1046
|
+
readonly items: {
|
|
1047
|
+
readonly type: "string";
|
|
1048
|
+
};
|
|
1049
|
+
readonly uniqueItems: true;
|
|
1050
|
+
}];
|
|
1051
|
+
};
|
|
1052
|
+
readonly skipInlineCode: {
|
|
1053
|
+
readonly type: "boolean";
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
readonly additionalProperties: false;
|
|
1057
|
+
}];
|
|
1058
|
+
readonly defaultOptions: [{
|
|
1059
|
+
readonly allow: [];
|
|
1060
|
+
readonly skipCode: true;
|
|
1061
|
+
readonly skipInlineCode: true;
|
|
1062
|
+
}];
|
|
1063
|
+
readonly messages: {
|
|
1064
|
+
readonly noIrregularDash: "Irregular dash `{{ irregularDash }}` is not allowed.";
|
|
1065
|
+
};
|
|
1066
|
+
readonly language: "markdown";
|
|
1067
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1068
|
+
};
|
|
1069
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1070
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1071
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1072
|
+
RuleOptions: [{
|
|
1073
|
+
allow: string[];
|
|
1074
|
+
skipCode: boolean | string[];
|
|
1075
|
+
skipInlineCode: boolean;
|
|
1076
|
+
}];
|
|
1077
|
+
Node: import("mdast").Node;
|
|
1078
|
+
MessageIds: "noIrregularDash";
|
|
1079
|
+
}>) => {
|
|
1080
|
+
code(node: import("mdast").Code): void;
|
|
1081
|
+
inlineCode(node: import("mdast").InlineCode): void;
|
|
1082
|
+
'root:exit'(): void;
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
'no-irregular-whitespace': {
|
|
1086
|
+
readonly meta: {
|
|
1087
|
+
readonly type: "problem";
|
|
1088
|
+
readonly docs: {
|
|
1089
|
+
readonly description: "Disallow irregular whitespace";
|
|
1090
|
+
readonly url: string;
|
|
1091
|
+
readonly recommended: true;
|
|
1092
|
+
readonly stylistic: false;
|
|
1093
|
+
};
|
|
1094
|
+
readonly schema: [{
|
|
1095
|
+
readonly type: "object";
|
|
1096
|
+
readonly properties: {
|
|
1097
|
+
readonly allow: {
|
|
1098
|
+
readonly type: "array";
|
|
1099
|
+
readonly items: {
|
|
1100
|
+
readonly type: "string";
|
|
1101
|
+
};
|
|
1102
|
+
readonly uniqueItems: true;
|
|
1103
|
+
};
|
|
1104
|
+
readonly skipCode: {
|
|
1105
|
+
readonly oneOf: [{
|
|
1106
|
+
readonly type: "boolean";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly type: "array";
|
|
1109
|
+
readonly items: {
|
|
1110
|
+
readonly type: "string";
|
|
1111
|
+
};
|
|
1112
|
+
readonly uniqueItems: true;
|
|
1113
|
+
}];
|
|
1114
|
+
};
|
|
1115
|
+
readonly skipInlineCode: {
|
|
1116
|
+
readonly type: "boolean";
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
readonly additionalProperties: false;
|
|
1120
|
+
}];
|
|
1121
|
+
readonly defaultOptions: [{
|
|
1122
|
+
readonly allow: [];
|
|
1123
|
+
readonly skipCode: true;
|
|
1124
|
+
readonly skipInlineCode: true;
|
|
1125
|
+
}];
|
|
1126
|
+
readonly messages: {
|
|
1127
|
+
readonly noIrregularWhitespace: "Irregular whitespace `{{ irregularWhitespace }}` is not allowed.";
|
|
1128
|
+
};
|
|
1129
|
+
readonly language: "markdown";
|
|
1130
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1131
|
+
};
|
|
1132
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1133
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1134
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1135
|
+
RuleOptions: [{
|
|
1136
|
+
allow: string[];
|
|
1137
|
+
skipCode: boolean | string[];
|
|
1138
|
+
skipInlineCode: boolean;
|
|
1139
|
+
}];
|
|
1140
|
+
Node: import("mdast").Node;
|
|
1141
|
+
MessageIds: "noIrregularWhitespace";
|
|
1142
|
+
}>) => {
|
|
1143
|
+
code(node: import("mdast").Code): void;
|
|
1144
|
+
inlineCode(node: import("mdast").InlineCode): void;
|
|
1145
|
+
'root:exit'(): void;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
'no-tab': {
|
|
1149
|
+
readonly meta: {
|
|
1150
|
+
readonly type: "problem";
|
|
1151
|
+
readonly docs: {
|
|
1152
|
+
readonly description: "Disallow tab characters";
|
|
1153
|
+
readonly url: string;
|
|
1154
|
+
readonly recommended: false;
|
|
1155
|
+
readonly stylistic: true;
|
|
1156
|
+
};
|
|
1157
|
+
readonly fixable: "whitespace";
|
|
1158
|
+
readonly schema: [{
|
|
1159
|
+
readonly type: "object";
|
|
1160
|
+
readonly properties: {
|
|
1161
|
+
readonly skipCode: {
|
|
1162
|
+
readonly oneOf: [{
|
|
1163
|
+
readonly type: "boolean";
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly type: "array";
|
|
1166
|
+
readonly items: {
|
|
1167
|
+
readonly type: "string";
|
|
1168
|
+
};
|
|
1169
|
+
readonly uniqueItems: true;
|
|
1170
|
+
}];
|
|
1171
|
+
};
|
|
1172
|
+
readonly skipInlineCode: {
|
|
1173
|
+
readonly type: "boolean";
|
|
1174
|
+
};
|
|
1175
|
+
readonly tabWidth: {
|
|
1176
|
+
readonly type: "integer";
|
|
1177
|
+
readonly minimum: 1;
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
readonly additionalProperties: false;
|
|
1181
|
+
}];
|
|
1182
|
+
readonly defaultOptions: [{
|
|
1183
|
+
readonly skipCode: true;
|
|
1184
|
+
readonly skipInlineCode: true;
|
|
1185
|
+
readonly tabWidth: 4;
|
|
1186
|
+
}];
|
|
1187
|
+
readonly messages: {
|
|
1188
|
+
readonly noTab: "Tab character is not allowed. Please use spaces instead.";
|
|
1189
|
+
};
|
|
1190
|
+
readonly language: "markdown";
|
|
1191
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1192
|
+
};
|
|
1193
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1194
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1195
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1196
|
+
RuleOptions: [{
|
|
1197
|
+
skipCode: boolean | string[];
|
|
1198
|
+
skipInlineCode: boolean;
|
|
1199
|
+
tabWidth: number;
|
|
1200
|
+
}];
|
|
1201
|
+
Node: import("mdast").Node;
|
|
1202
|
+
MessageIds: "noTab";
|
|
1203
|
+
}>) => {
|
|
1204
|
+
code(node: import("mdast").Code): void;
|
|
1205
|
+
inlineCode(node: import("mdast").InlineCode): void;
|
|
1206
|
+
'root:exit'(): void;
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
'no-url-trailing-slash': {
|
|
1210
|
+
readonly meta: {
|
|
1211
|
+
readonly type: "problem";
|
|
1212
|
+
readonly docs: {
|
|
1213
|
+
readonly description: "Disallow URL trailing slash";
|
|
1214
|
+
readonly url: string;
|
|
1215
|
+
readonly recommended: false;
|
|
1216
|
+
readonly stylistic: false;
|
|
1217
|
+
};
|
|
1218
|
+
readonly messages: {
|
|
1219
|
+
readonly noUrlTrailingSlash: "URL trailing slash is not allowed.";
|
|
1220
|
+
};
|
|
1221
|
+
readonly language: "markdown";
|
|
1222
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1223
|
+
};
|
|
1224
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1225
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1226
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1227
|
+
RuleOptions: [];
|
|
1228
|
+
Node: import("mdast").Node;
|
|
1229
|
+
MessageIds: "noUrlTrailingSlash";
|
|
1230
|
+
}>) => {
|
|
1231
|
+
'link, image, definition'(node: import("mdast").Link | import("mdast").Image | import("mdast").Definition): void;
|
|
1232
|
+
html(node: import("mdast").Html): void;
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
'require-heading-id': {
|
|
1236
|
+
readonly meta: {
|
|
1237
|
+
readonly type: "problem";
|
|
1238
|
+
readonly docs: {
|
|
1239
|
+
readonly description: "Enforce the use of heading IDs";
|
|
1240
|
+
readonly url: string;
|
|
1241
|
+
readonly recommended: false;
|
|
1242
|
+
readonly stylistic: false;
|
|
1243
|
+
};
|
|
1244
|
+
readonly fixable: "code";
|
|
1245
|
+
readonly schema: [{
|
|
1246
|
+
readonly enum: ["always", "never"];
|
|
1247
|
+
}, {
|
|
1248
|
+
readonly type: "object";
|
|
1249
|
+
readonly properties: {
|
|
1250
|
+
readonly leftDelimiter: {
|
|
1251
|
+
readonly type: "string";
|
|
1252
|
+
};
|
|
1253
|
+
readonly rightDelimiter: {
|
|
1254
|
+
readonly type: "string";
|
|
1255
|
+
};
|
|
1256
|
+
readonly allowDepths: {
|
|
1257
|
+
readonly type: "array";
|
|
1258
|
+
readonly items: {
|
|
1259
|
+
readonly enum: [1, 2, 3, 4, 5, 6];
|
|
1260
|
+
};
|
|
1261
|
+
readonly uniqueItems: true;
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
readonly additionalProperties: false;
|
|
1265
|
+
}];
|
|
1266
|
+
readonly defaultOptions: ["always", {
|
|
1267
|
+
readonly leftDelimiter: "{";
|
|
1268
|
+
readonly rightDelimiter: "}";
|
|
1269
|
+
readonly allowDepths: [];
|
|
1270
|
+
}];
|
|
1271
|
+
readonly messages: {
|
|
1272
|
+
readonly headingIdAlways: "Headings should have an ID attribute.";
|
|
1273
|
+
readonly headingIdNever: "Headings should not have an ID attribute. Remove the `{{ headingId }}`.";
|
|
1274
|
+
};
|
|
1275
|
+
readonly language: "markdown";
|
|
1276
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1277
|
+
};
|
|
1278
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1279
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1280
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1281
|
+
RuleOptions: ["always" | "never", {
|
|
1282
|
+
leftDelimiter: string;
|
|
1283
|
+
rightDelimiter: string;
|
|
1284
|
+
allowDepths: import("mdast").Heading["depth"][];
|
|
1285
|
+
}];
|
|
1286
|
+
Node: import("mdast").Node;
|
|
1287
|
+
MessageIds: "headingIdAlways" | "headingIdNever";
|
|
1288
|
+
}>) => {
|
|
1289
|
+
heading(node: import("mdast").Heading): void;
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
'require-image-title': {
|
|
1293
|
+
readonly meta: {
|
|
1294
|
+
readonly type: "problem";
|
|
1295
|
+
readonly docs: {
|
|
1296
|
+
readonly description: "Enforce the use of title attribute for images";
|
|
1297
|
+
readonly url: string;
|
|
1298
|
+
readonly recommended: false;
|
|
1299
|
+
readonly stylistic: false;
|
|
1300
|
+
};
|
|
1301
|
+
readonly schema: [{
|
|
1302
|
+
readonly type: "object";
|
|
1303
|
+
readonly properties: {
|
|
1304
|
+
readonly allowDefinitions: {
|
|
1305
|
+
readonly type: "array";
|
|
1306
|
+
readonly items: {
|
|
1307
|
+
readonly type: "string";
|
|
1308
|
+
};
|
|
1309
|
+
readonly uniqueItems: true;
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
1312
|
+
readonly additionalProperties: false;
|
|
1313
|
+
}];
|
|
1314
|
+
readonly defaultOptions: [{
|
|
1315
|
+
readonly allowDefinitions: ["//"];
|
|
1316
|
+
}];
|
|
1317
|
+
readonly messages: {
|
|
1318
|
+
readonly requireImageTitle: "Images should have a title attribute.";
|
|
1319
|
+
};
|
|
1320
|
+
readonly language: "markdown";
|
|
1321
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1322
|
+
};
|
|
1323
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1324
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1325
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1326
|
+
RuleOptions: [{
|
|
1327
|
+
allowDefinitions: string[];
|
|
1328
|
+
}];
|
|
1329
|
+
Node: import("mdast").Node;
|
|
1330
|
+
MessageIds: "requireImageTitle";
|
|
1331
|
+
}>) => {
|
|
1332
|
+
image(node: import("mdast").Image): void;
|
|
1333
|
+
html(node: import("mdast").Html): void;
|
|
1334
|
+
imageReference(node: import("mdast").ImageReference): void;
|
|
1335
|
+
definition(node: import("mdast").Definition): void;
|
|
1336
|
+
'root:exit'(): void;
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
'require-link-title': {
|
|
1340
|
+
readonly meta: {
|
|
1341
|
+
readonly type: "problem";
|
|
1342
|
+
readonly docs: {
|
|
1343
|
+
readonly description: "Enforce the use of title attribute for links";
|
|
1344
|
+
readonly url: string;
|
|
1345
|
+
readonly recommended: false;
|
|
1346
|
+
readonly stylistic: false;
|
|
1347
|
+
};
|
|
1348
|
+
readonly schema: [{
|
|
1349
|
+
readonly type: "object";
|
|
1350
|
+
readonly properties: {
|
|
1351
|
+
readonly allowDefinitions: {
|
|
1352
|
+
readonly type: "array";
|
|
1353
|
+
readonly items: {
|
|
1354
|
+
readonly type: "string";
|
|
1355
|
+
};
|
|
1356
|
+
readonly uniqueItems: true;
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
readonly additionalProperties: false;
|
|
1360
|
+
}];
|
|
1361
|
+
readonly defaultOptions: [{
|
|
1362
|
+
readonly allowDefinitions: ["//"];
|
|
1363
|
+
}];
|
|
1364
|
+
readonly messages: {
|
|
1365
|
+
readonly requireLinkTitle: "Links should have a title attribute.";
|
|
1366
|
+
};
|
|
1367
|
+
readonly language: "markdown";
|
|
1368
|
+
readonly dialects: ["commonmark", "gfm"];
|
|
1369
|
+
};
|
|
1370
|
+
readonly create: (context: import("@eslint/core").RuleContext<{
|
|
1371
|
+
LangOptions: import("@eslint/markdown").MarkdownLanguageOptions;
|
|
1372
|
+
Code: import("@eslint/markdown").MarkdownSourceCode;
|
|
1373
|
+
RuleOptions: [{
|
|
1374
|
+
allowDefinitions: string[];
|
|
1375
|
+
}];
|
|
1376
|
+
Node: import("mdast").Node;
|
|
1377
|
+
MessageIds: "requireLinkTitle";
|
|
1378
|
+
}>) => {
|
|
1379
|
+
link(node: import("mdast").Link): void;
|
|
1380
|
+
html(node: import("mdast").Html): void;
|
|
1381
|
+
linkReference(node: import("mdast").LinkReference): void;
|
|
1382
|
+
definition(node: import("mdast").Definition): void;
|
|
1383
|
+
'root:exit'(): void;
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
readonly configs: {
|
|
1388
|
+
readonly all: ReturnType<typeof all>;
|
|
1389
|
+
readonly base: ReturnType<typeof base>;
|
|
1390
|
+
readonly recommended: ReturnType<typeof recommended>;
|
|
1391
|
+
readonly stylistic: ReturnType<typeof stylistic>;
|
|
1392
|
+
};
|
|
1393
|
+
};
|
|
1
1394
|
export default plugin;
|
|
2
|
-
declare namespace plugin {
|
|
3
|
-
export namespace meta {
|
|
4
|
-
export { name };
|
|
5
|
-
export { version };
|
|
6
|
-
}
|
|
7
|
-
export { rules };
|
|
8
|
-
export namespace configs {
|
|
9
|
-
const all: ReturnType<typeof import("./configs/all.js").default>;
|
|
10
|
-
const base: ReturnType<typeof import("./configs/base.js").default>;
|
|
11
|
-
const recommended: ReturnType<typeof import("./configs/recommended.js").default>;
|
|
12
|
-
const stylistic: ReturnType<typeof import("./configs/stylistic.js").default>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
import { PKG_NAME as name } from './core/constants.js';
|
|
16
|
-
import { PKG_VERSION as version } from './core/constants.js';
|
|
17
|
-
import rules from './rules/index.js';
|