-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Copy path.markdownlint.jsonc
174 lines (173 loc) · 5.75 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
// https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
"MD004": {"style": "dash"}, // ul-style
"MD007": { "indent": 4 }, // ul-indent
"MD013": false, // line-length
"MD014": false, // commands-show-output
"MD024": {"siblings_only": true}, // no-duplicate-header
"MD026": {"punctuation": ".,;:"}, // no-trailing-punctuation (allows !?)
"MD033": false, // no-inline-html
"MD035": {"style": "---"}, // hr-style
"MD036": {"punctuation": ".,;:!。"}, // no-emphasis-as-header
"MD041": false, // first-line-h1
"MD045": false, // no-alt-text
"MD046": false, // code-block-style (unsupported admonitions)
"MD049": {"style": "underscore"}, // emphasis-style
"MD050": {"style": "asterisk"}, // strong-style
"MD055": {"style": "leading_and_trailing"}, // table-pipe-style
"search-replace": {
"rules": [
{
"name": "curly-double-quotes",
"message": "Do not use curly double quotes.",
"searchPattern": "/“|”/g",
"replace": "\"",
"searchScope": "text"
},
{
"name": "nbsp",
"message": "Don't use no-break spaces",
"searchPattern": "/ /g",
"replace": " ",
"searchScope": "all"
},
{
"name": "curly-single-quotes",
"message": "Don't use curly single quotes",
"searchPattern": "/‘|’/g",
"replace": "'",
"searchScope": "text"
},
{
"name": "gender-neutrality",
"message": "Ensure gender-neutral language is used.",
"searchPattern": "/\\bhe\\b|\\bshe\\b|\\bhis\\b|\\bhimself\\b|\\bherself\\b|\\bher\\b|\\bhim\\b|\\bhers\\b/g",
"replace": ""
},
{
"name": "trailing-spaces",
"message": "Avoid trailing spaces",
"searchPattern": "/ +$/gm",
"replace": "",
"searchScope": "all",
},
{
"name": "double-spaces",
"message": "Avoid double spaces",
"searchPattern": "/([^\\s>]) ([^\\s|])/g",
"replace": "$1 $2",
"searchScope": "text"
},
// {
// "name": "correct-noun-forms",
// "message": "Use the correct form for specific terms.",
// "searchPattern": [
// "/\\bMacOS\\b/g",
// "/\\bAppStore\\b/g",
// "/\\bBackEnd\\b/g",
// "/\\bbase64\\b/g",
// "/\\bBlackBox\\b/g",
// "/\\bBundleID\\b/g",
// "/\\bBytecode\\b/g",
// "/\\bClientSide\\b/g",
// "/\\bCodeBase\\b/g",
// "/\\bCodeSigning\\b/g",
// "/\\bCommandLine\\b/g",
// "/\\bDisassembler\\b/g",
// "/\\bEndUsers\\b/g",
// "/\\bFileName\\b/g",
// "/\\bMac OS\\b/g",
// "/\\bPentest\\b/g",
// "/\\bPhonegap\\b/g",
// "/\\bPython\\b/g",
// "/\\bRepackage\\b/g",
// "/\\bRun time\\b/g",
// "/\\brun time\\b/g",
// "/\\bServerSide\\b/g",
// "/\\bSnapshotLength\\b/g",
// "/\\bUseCase\\b/g",
// "/\\bWiFi\\b/g",
// "/\\bWhiteBox\\b/g"
// ],
// "replace": [
// "macOS",
// "App Store",
// "backend",
// "Base64",
// "black box",
// "Bundle ID",
// "bytecode",
// "client side",
// "codebase",
// "code signing",
// "command line",
// "disassembler",
// "end users",
// "file name",
// "macOS",
// "pentest",
// "PhoneGap",
// "Python",
// "repackage",
// "Runtime",
// "runtime",
// "server side",
// "snapshot length",
// "use case",
// "Wi-Fi",
// "white box"
// ],
// "searchScope": "text"
// },
// {
// "name": "contractions",
// "message": "Use contractions where appropriate",
// "searchPattern": [
// "/\\bare not\\b/g",
// "/\\bcannot\\b/g",
// "/\\bcould not\\b/g",
// "/\\bdid not\\b/g",
// "/\\bdo not\\b/g",
// "/\\bdoes not\\b/g",
// "/\\bhas not\\b/g",
// "/\\bhad not\\b/g",
// "/\\bhave not\\b/g",
// "/\\bis not\\b/g",
// "/\\bit is\\b/g",
// "/\\bthat is\\b/g",
// "/\\bthere is\\b/g",
// "/\\bwas not\\b/g",
// "/\\bwere not\\b/g",
// "/\\bwill not\\b/g",
// "/\\bwould not\\b/g",
// "/\\byou are\\b/g",
// "/\\byou have\\b/g",
// "/\\byou will\\b/g"
// ],
// "replace": [
// "aren't",
// "can't",
// "couldn't",
// "didn't",
// "don't",
// "doesn't",
// "hasn't",
// "hadn't",
// "haven't",
// "isn't",
// "it's",
// "that's",
// "there's",
// "wasn't",
// "weren't",
// "won't",
// "wouldn't",
// "you're",
// "you've",
// "you'll"
// ],
// "searchScope": "text"
// },
]
}
}