Skip to content

Commit 3df930f

Browse files
committed
Introduce markdown lint (closes #21)
1 parent a78c11c commit 3df930f

File tree

3 files changed

+450
-0
lines changed

3 files changed

+450
-0
lines changed

.markdownlint.json

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
"comment": "Be explicit by listing every available rule. https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md",
3+
"comment": "Note that there will be numeric gaps, not every MD number is implemented in markdownlint.",
4+
5+
"comment": "MD001: Header levels should only increment by one level at a time.",
6+
"header-increment": true,
7+
8+
"comment": "MD002: First header should be a top level header.",
9+
"first-header-h1": true,
10+
11+
"comment": "MD003: Header style: start with hashes.",
12+
"header-style": {
13+
"style": "atx"
14+
},
15+
16+
"comment": "MD004: Unordered list style",
17+
"ul-style": {
18+
"style": "dash"
19+
},
20+
21+
"comment": "MD005: Consistent indentation for list items at the same level.",
22+
"list-indent": true,
23+
24+
"comment": "MD006: Consider starting bulleted lists at the beginning of the line.",
25+
"ul-start-left": false,
26+
27+
"comment": "MD007: Unordered list indentation: 2 spaces.",
28+
"ul-indent": {
29+
"indent": 2
30+
},
31+
32+
"comment": "MD009: Disallow trailing spaces!",
33+
"no-trailing-spaces": {
34+
"br_spaces": 0,
35+
"comment": "Empty lines inside list items should not be indented.",
36+
"list_item_empty_lines": false
37+
},
38+
39+
"comment": "MD010: No hard tabs, not even in code blocks.",
40+
"no-hard-tabs": {
41+
"code_blocks": true
42+
},
43+
44+
"comment": "MD011: Prevent reversed link syntax",
45+
"no-reversed-links": true,
46+
47+
"comment": "MD012: Disallow multiple consecutive blank lines.",
48+
"no-multiple-blanks": {
49+
"maximum": 1
50+
},
51+
52+
"comment": "MD013: Line length",
53+
"line-length": false,
54+
55+
"comment": "MD014: Disallow use of dollar signs($) before commands without showing output.",
56+
"commands-show-output": true,
57+
58+
"comment": "MD018: Disallow space after hash on atx style header.",
59+
"no-missing-space-atx": true,
60+
61+
"comment": "MD019: Disallow multiple spaces after hash on atx style header.",
62+
"no-multiple-space-atx": true,
63+
64+
"comment": "MD020: No space should be inside hashes on closed atx style header.",
65+
"no-missing-space-closed-atx": true,
66+
67+
"comment": "MD021: Disallow multiple spaces inside hashes on closed atx style header.",
68+
"no-multiple-space-closed-atx": true,
69+
70+
"comment": "MD022: Headers should be surrounded by blank lines.",
71+
"comment": "Some headers have preceeding HTML anchors. Unfortunate that we have to disable this, as it otherwise catches a real problem that trips up some Markdown renderers",
72+
"blanks-around-headers": false,
73+
74+
"comment": "MD023: Headers must start at the beginning of the line.",
75+
"header-start-left": true,
76+
77+
"comment": "MD024: Disallow multiple headers with the same content.",
78+
"no-duplicate-header": true,
79+
80+
"comment": "MD025: Disallow multiple top level headers in the same document.",
81+
"comment": "Gotta have a matching closing brace at the end.",
82+
"single-h1": false,
83+
84+
"comment": "MD026: Disallow trailing punctuation in header.",
85+
"comment": "You must have a semicolon after the ending closing brace.",
86+
"no-trailing-punctuation": {
87+
"punctuation" : ".,:!?"
88+
},
89+
"comment": "MD027: Dissalow multiple spaces after blockquote symbol",
90+
"no-multiple-space-blockquote": true,
91+
92+
"comment": "MD028: Blank line inside blockquote",
93+
"comment": "Some 'Why?' and 'Why not?' blocks are separated by a blank line",
94+
"no-blanks-blockquote": false,
95+
96+
"comment": "MD029: Ordered list item prefix",
97+
"ol-prefix": {
98+
"style": "one"
99+
},
100+
101+
"comment": "MD030: Spaces after list markers",
102+
"list-marker-space": {
103+
"ul_single": 1,
104+
"ol_single": 1,
105+
"ul_multi": 1,
106+
"ol_multi": 1
107+
},
108+
109+
"comment": "MD031: Fenced code blocks should be surrounded by blank lines",
110+
"blanks-around-fences": true,
111+
112+
"comment": "MD032: Lists should be surrounded by blank lines",
113+
"comment": "Some lists have preceeding HTML anchors. Unfortunate that we have to disable this, as it otherwise catches a real problem that trips up some Markdown renderers",
114+
"blanks-around-lists": false,
115+
116+
"comment": "MD033: Disallow inline HTML",
117+
"comment": "HTML is needed for explicit anchors",
118+
"no-inline-html": false,
119+
120+
"comment": "MD034: No bare URLs should be used",
121+
"no-bare-urls": true,
122+
123+
"comment": "MD035: Horizontal rule style",
124+
"hr-style": {
125+
"style": "consistent"
126+
},
127+
128+
"comment": "MD036: Do not use emphasis instead of a header.",
129+
"no-emphasis-as-header": false,
130+
131+
"comment": "MD037: Disallow spaces inside emphasis markers.",
132+
"no-space-in-emphasis": true,
133+
134+
"comment": "MD038: Disallow spaces inside code span elements.",
135+
"no-space-in-code": true,
136+
137+
"comment": "MD039: Disallow spaces inside link text.",
138+
"no-space-in-links": true,
139+
140+
"comment": "MD040: Fenced code blocks should have a language specified.",
141+
"fenced-code-language": true,
142+
143+
"comment": "MD041: First line in file should be a top level header.",
144+
"first-line-h1": true,
145+
146+
"comment": "MD042: No empty links",
147+
"no-empty-links": true,
148+
149+
"comment": "MD043: Required header structure.",
150+
"required-headers": false,
151+
152+
"comment": "MD044: Proper names should have the correct capitalization.",
153+
"proper-names": false
154+
}

0 commit comments

Comments
 (0)