81 lines
2.5 KiB
JSON
81 lines
2.5 KiB
JSON
{
|
|
// Lilith Platform — Markdown Linting Configuration
|
|
// Mirrors @lilith/eslint-plugin-file-length pattern for TypeScript.
|
|
// Run: bun run lint:md
|
|
// Fix: bun run lint:md:fix
|
|
|
|
"config": {
|
|
"default": true,
|
|
|
|
// ── Disabled: Cosmetic / Too Noisy ──────────────────────────────
|
|
|
|
// MD013: Line length — disabled for prose-heavy documentation
|
|
"MD013": false,
|
|
|
|
// MD025: Multiple top-level headings — many docs use multiple H1s
|
|
"MD025": false,
|
|
|
|
// MD026: Trailing punctuation in headings — question headings are common
|
|
"MD026": false,
|
|
|
|
// MD032: Blanks around lists — 5K+ pre-existing violations, low value
|
|
"MD032": false,
|
|
|
|
// MD033: Inline HTML — allowed for formatting needs
|
|
"MD033": false,
|
|
|
|
// MD034: Bare URLs — docs naturally contain raw URLs
|
|
"MD034": false,
|
|
|
|
// MD036: Emphasis used instead of heading — false positives with
|
|
// bold inline labels like **One revenue model.**
|
|
"MD036": false,
|
|
|
|
// MD041: First line heading — some docs start with YAML frontmatter
|
|
"MD041": false,
|
|
|
|
// MD044: Proper names — disabled (custom dictionaries not configured)
|
|
"MD044": false,
|
|
|
|
// MD058: Tables surrounded by blank lines — stylistic, low value
|
|
"MD058": false,
|
|
|
|
// MD060: Table column style — 14K+ pre-existing violations, cosmetic
|
|
"MD060": false,
|
|
|
|
// ── Kept: Meaningful Quality ────────────────────────────────────
|
|
|
|
// MD024: Multiple headings with same content — allow among siblings
|
|
"MD024": { "siblings_only": true },
|
|
|
|
// MD022: Blanks around headings (auto-fixable)
|
|
// MD031: Blanks around fences (auto-fixable)
|
|
// MD040: Fenced code language specified
|
|
// MD001: Heading increment
|
|
// MD012: No multiple blank lines
|
|
// MD018: Space after hash on heading
|
|
// MD029: Ordered list item prefix
|
|
// MD051: Link fragments valid
|
|
// (all enabled via "default": true)
|
|
|
|
// ── Custom: File Length (dual-threshold word count, matches TS pattern) ──
|
|
// Counts words (not lines). Tables can be excluded with:
|
|
// <!-- wordcount:off --> ...table... <!-- wordcount:on -->
|
|
|
|
"file-length": {
|
|
"warnThreshold": 2500,
|
|
"errorThreshold": 3000
|
|
}
|
|
},
|
|
|
|
"customRules": [
|
|
"./tooling/markdownlint-rules/file-length.cjs"
|
|
],
|
|
|
|
"ignores": [
|
|
"**/node_modules/**",
|
|
"**/dist/**",
|
|
"**/.vite-cache/**",
|
|
"**/CHANGELOG.md"
|
|
]
|
|
}
|