This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.markdownlint.jsonc
58 lines (57 loc) · 1.86 KB
/
.markdownlint.jsonc
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
{
// vim: ft=jsonc foldlevel=0 sw=2 ts=2 sts=2 et
// Conf(current file) is not recognized when commented outside root {}
// npm rc standards only recognizes json, ini
// Ref
// - https://www.npmjs.com/package/rc#standards
// - https://github.com/igorshubovych/markdownlint-cli
// - https://github.com/DavidAnson/markdownlint
// - https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.jsonc
// - https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
// Plugins for other editors
// - https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint
// Default state for all rules
"default": true,
// Path to configuration file to extend
"extends": null,
// MD007/ul-indent - Unordered list indentation
"MD007": {
// Why indent size defaults to 2?
// https://github.com/DavidAnson/markdownlint/issues/141
// 2 spaces indent has compatibility issues:
// - multi-markdown parsers require 4-space indents
// - vim sleuth, polyglot have no support for 2 space auto indent with o
"indent": 2
},
// MD010/no-hard-tabs - Hard tabs
"MD010": {
"code_blocks": false
},
// MD013/line-length - Line length
// VSCode plugin disable this check by default
"MD013": {
"line_length": 80,
"heading_line_length": 80,
"code_block_line_length": 80,
"code_blocks": false,
"tables": false,
"headings": true,
"strict": false
// "stern": false
},
// MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
"MD024": {
// Only check sibling headings
"siblings_only": true
// allow_different_nesting, an alternative
},
// MD033/no-inline-html - Inline HTML
"MD033": {
"allowed_elements": [
"details", "summary",
"kbd"
]
},
// MD034/no-bare-urls - Bare URL used
"MD034": false
}