forked from DavidAnson/markdownlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.js
74 lines (70 loc) · 1.62 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
64
65
66
67
68
69
70
71
72
73
74
// @ts-check
"use strict";
const { homepage, version } = require("./constants");
// @ts-ignore
const [ md019, md021 ] = require("./md019-md021");
// @ts-ignore
const [ md049, md050 ] = require("./md049-md050");
const rules = [
require("./md001"),
// md002: Deprecated and removed
require("./md003"),
require("./md004"),
require("./md005"),
// md006: Deprecated and removed
require("./md007"),
require("./md009"),
require("./md010"),
require("./md011"),
require("./md012"),
require("./md013"),
require("./md014"),
require("./md018"),
md019,
require("./md020"),
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"),
md049,
md050,
require("./md051"),
require("./md052"),
require("./md053"),
require("./md054"),
require("./md055"),
require("./md056"),
// md057: See https://github.com/markdownlint/markdownlint
require("./md058")
];
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;