forked from DavidAnson/markdownlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.js
63 lines (60 loc) · 1.36 KB
/
rules.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// @ts-check
"use strict";
const { homepage, version } = require("./constants");
const rules = [
require("./md001"),
require("./md002"),
require("./md003"),
require("./md004"),
require("./md005"),
require("./md006"),
require("./md007"),
require("./md009"),
require("./md010"),
require("./md011"),
require("./md012"),
require("./md013"),
require("./md014"),
require("./md018"),
require("./md019"),
require("./md020"),
require("./md021"),
require("./md022"),
require("./md023"),
require("./md024"),
require("./md025"),
require("./md026"),
require("./md027"),
require("./md028"),
require("./md029"),
require("./md030"),
require("./md031"),
require("./md032"),
require("./md033"),
require("./md034"),
require("./md035"),
require("./md036"),
require("./md037"),
require("./md038"),
require("./md039"),
require("./md040"),
require("./md041"),
require("./md042"),
require("./md043"),
require("./md044"),
require("./md045"),
require("./md046"),
require("./md047"),
require("./md048"),
...require("./md049-md050"),
require("./md051"),
require("./md052"),
require("./md053")
];
for (const rule of rules) {
const name = rule.names[0].toLowerCase();
// eslint-disable-next-line dot-notation
rule["information"] =
new URL(`${homepage}/blob/v${version}/doc/${name}.md`);
}
module.exports = rules;