forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.markdownlint-cli2.jsonc
More file actions
49 lines (38 loc) · 1.65 KB
/
Copy path.markdownlint-cli2.jsonc
File metadata and controls
49 lines (38 loc) · 1.65 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
49
{
// Rule reference: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
// Custom rules
"customRules": [
".markdownlint-rules/require-heading-id.js",
".markdownlint-rules/no-duplicate-heading-id.js",
".markdownlint-rules/lowercase-heading-id.js",
".markdownlint-rules/match-english-heading-ids.js"
],
// Rule configuration
"config": {
// Start conservative: disable all built-in rules, enable selectively
"default": false,
// MD001: Heading levels increment by one (no h2 -> h4 skips)
// Flexible on starting level -- disable frontmatter title as implicit h1
"MD001": { "front_matter_title": "" },
// MD024: No duplicate heading text among siblings
"MD024": { "siblings_only": true },
// MD025: Only one top-level heading per file
// Disable frontmatter title as implicit h1 (same reason as MD001)
"MD025": { "front_matter_title": "" },
// MD041: First line must be top-level heading -- DISABLED
// Our files start at h1, h2, or h3 depending on layout
"MD041": false,
// MD051: Link fragments must point to valid heading anchors
"MD051": true,
// Custom: Every h1-h4 must have {#anchor-id}
"heading-requires-id": true,
// Custom: No duplicate {#id} anchors in the same file
"no-duplicate-heading-id": true,
// Custom: Heading IDs must be lowercase
"lowercase-heading-id": true,
// Custom: Translation IDs must match English source (flag only, no auto-fix)
// DISABLED until translation pipeline with drift detection is in place.
// Rule file kept for future use as a pipeline validation step.
"match-english-heading-ids": false
}
}