forked from renovatebot/renovate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.markdownlint-cli2.mjs
More file actions
48 lines (44 loc) · 1.08 KB
/
.markdownlint-cli2.mjs
File metadata and controls
48 lines (44 loc) · 1.08 KB
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
const ci = !!process.env.CI;
export default {
// Disable some built-in rules
config: {
'no-emphasis-as-heading': false,
'fenced-code-language': false,
'first-line-heading': false,
'line-length': false,
'no-emphasis-as-header': false,
'no-inline-html': false,
'single-h1': false,
'table-column-style': {
style: 'aligned',
},
},
...(ci && {
outputFormatters: [
[
'markdownlint-cli2-formatter-template',
{
template:
'::${errorSeverity:${errorSeverity}}${errorSeverity!error} file=${fileName},line=${lineNumber},${columnNumber:col=${columnNumber},}title=${ruleName}::${ruleDescription}',
},
],
],
}),
// Define glob expressions to use (only valid at root)
globs: ['**/*.md'],
// Define glob expressions to ignore
ignores: [
'**/__fixtures__/*',
'**/node_modules/**',
'tmp/**',
'**/.cache/**',
'.venv/**',
'tools/mkdocs/docs/**',
'tools/mkdocs/site/**',
'.agents/**',
'.claude/**',
'.opencode/**',
'AGENTS.md',
'CLAUDE.md',
],
};