chore: fix ci md lint
This commit is contained in:
parent
32a4ba8ac6
commit
c12779cde5
@ -1,94 +1,70 @@
|
|||||||
// Markdownlint-cli2 Configuration for SecretumVault
|
// Markdownlint-cli2 Configuration for TypeDialog
|
||||||
// Documentation quality enforcement for security-focused project
|
// Documentation quality enforcement with relaxed technical writing rules
|
||||||
// See: https://github.com/igorshubovych/markdownlint-cli2
|
// See: https://github.com/igorshubovych/markdownlint-cli2
|
||||||
|
|
||||||
{
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"default": true,
|
"default": true,
|
||||||
|
|
||||||
// Headings - enforce proper hierarchy
|
// Headings - relaxed for technical docs
|
||||||
"MD001": false, // heading-increment (relaxed - allow flexibility)
|
"MD001": false, // heading-increment (allow flexible hierarchy)
|
||||||
"MD026": { "punctuation": ".,;:!?" }, // heading-punctuation
|
"MD003": false, // heading-style (mixed styles ok)
|
||||||
|
"MD022": true, // blanks-around-headings (enforce for clarity)
|
||||||
|
"MD023": false, // heading-start-line (allow indented headings)
|
||||||
|
"MD024": false, // no-duplicate-heading (allow duplicates)
|
||||||
|
"MD025": false, // single-h1 (allow multiple H1s)
|
||||||
|
"MD026": { "punctuation": ".,;:!?" }, // heading-punctuation
|
||||||
|
|
||||||
// Lists - enforce consistency
|
// Lists - relaxed for flexibility
|
||||||
"MD004": { "style": "consistent" }, // ul-style (consistent list markers)
|
"MD004": { "style": "consistent" }, // ul-style
|
||||||
"MD005": false, // inconsistent-indentation (relaxed)
|
"MD005": false, // inconsistent-indentation (too strict)
|
||||||
"MD007": { "indent": 2 }, // ul-indent
|
"MD007": false, // ul-indent (allow flexible indentation)
|
||||||
"MD029": false, // ol-prefix (allow flexible list numbering)
|
"MD029": { "style": "1/1/1" }, // ol-prefix (allow lazy numbering)
|
||||||
"MD030": { "ul_single": 1, "ol_single": 1, "ul_multi": 1, "ol_multi": 1 },
|
"MD030": false, // list-marker-space (too strict)
|
||||||
|
"MD032": true, // blanks-around-lists (enforce for clarity)
|
||||||
|
|
||||||
// Code blocks - fenced only
|
// Code blocks - enforce language but relax spacing
|
||||||
"MD046": { "style": "fenced" }, // code-block-style
|
"MD031": true, // blanks-around-fences (enforce for clarity)
|
||||||
// NOTE: MD040 only checks for missing language on opening fence.
|
"MD040": true, // fenced-code-language (require language)
|
||||||
// It does NOT catch malformed closing fences with language specifiers (e.g., ```plaintext).
|
"MD046": { "style": "fenced" }, // code-block-style
|
||||||
// Custom pre-commit hook required to enforce proper closing fence syntax.
|
"MD049": false, // emphasis-style (allow flexibility)
|
||||||
|
"MD050": false, // strong-style (allow flexibility)
|
||||||
|
|
||||||
// Formatting - strict whitespace
|
// Formatting - essential only
|
||||||
"MD009": true, // no-hard-tabs
|
"MD009": true, // no-trailing-spaces
|
||||||
"MD010": true, // hard-tabs
|
"MD010": true, // no-hard-tabs
|
||||||
"MD011": true, // reversed-link-syntax
|
"MD011": true, // reversed-link-syntax
|
||||||
|
"MD012": false, // no-multiple-blanks (allow spacing)
|
||||||
|
"MD014": false, // commands-show-output (allow $ in examples)
|
||||||
"MD018": true, // no-missing-space-atx
|
"MD018": true, // no-missing-space-atx
|
||||||
"MD019": true, // no-multiple-space-atx
|
"MD019": true, // no-multiple-space-atx
|
||||||
"MD020": true, // no-missing-space-closed-atx
|
|
||||||
"MD021": true, // no-multiple-space-closed-atx
|
|
||||||
"MD023": true, // heading-starts-line
|
|
||||||
"MD027": true, // no-multiple-spaces-blockquote
|
|
||||||
"MD037": true, // no-space-in-emphasis
|
"MD037": true, // no-space-in-emphasis
|
||||||
"MD039": true, // no-space-in-links
|
"MD038": false, // no-space-in-code (too strict)
|
||||||
|
|
||||||
// Trailing content
|
|
||||||
"MD012": false, // no-multiple-blanks (relaxed - allow formatting space)
|
|
||||||
"MD024": false, // no-duplicate-heading (too strict for docs)
|
|
||||||
"MD028": false, // no-blanks-blockquote (relaxed)
|
|
||||||
"MD031": false, // blanks-around-fences (too strict for technical docs)
|
|
||||||
"MD047": true, // single-trailing-newline
|
"MD047": true, // single-trailing-newline
|
||||||
|
|
||||||
// Links and references
|
// Links and references
|
||||||
"MD034": true, // no-bare-urls (links must be formatted)
|
"MD034": true, // no-bare-urls
|
||||||
"MD040": true, // fenced-code-language (code blocks need language)
|
|
||||||
"MD042": true, // no-empty-links
|
"MD042": true, // no-empty-links
|
||||||
"MD051": false, // link-fragments (often false positives for valid internal links)
|
"MD051": false, // link-fragments (false positives with valid anchors)
|
||||||
|
"MD052": false, // reference-links-images (too strict)
|
||||||
|
"MD053": false, // link-image-reference-definitions (too strict)
|
||||||
|
|
||||||
// HTML - allow for documentation formatting and images
|
// HTML and inline elements
|
||||||
"MD033": { "allowed_elements": ["br", "hr", "details", "summary", "p", "img", "div"] },
|
"MD033": false, // no-inline-html (allow HTML in docs)
|
||||||
|
"MD036": false, // no-emphasis-as-heading
|
||||||
|
"MD041": false, // first-line-heading (allow files without H1 at start)
|
||||||
|
|
||||||
// Line length - relaxed for technical documentation
|
// Line length - disabled for technical content
|
||||||
"MD013": {
|
"MD013": false,
|
||||||
"line_length": 150,
|
|
||||||
"heading_line_length": 150,
|
|
||||||
"code_block_line_length": 150,
|
|
||||||
"code_blocks": true,
|
|
||||||
"tables": true,
|
|
||||||
"headers": true,
|
|
||||||
"headers_line_length": 150,
|
|
||||||
"strict": false,
|
|
||||||
"stern": false
|
|
||||||
},
|
|
||||||
|
|
||||||
// Images
|
// Tables - relaxed
|
||||||
"MD045": true, // image-alt-text
|
"MD056": false, // table-column-count (allow flexible columns)
|
||||||
|
"MD058": false, // table-pipe-style (too strict)
|
||||||
// Disable rules that conflict with relaxed style
|
"MD059": false, // table-row-style (too strict)
|
||||||
"MD003": false, // consistent-indentation
|
"MD060": false // table-column-style (too strict)
|
||||||
"MD041": false, // first-line-heading
|
|
||||||
"MD025": false, // single-h1 / multiple-top-level-headings
|
|
||||||
"MD022": false, // blanks-around-headings (flexible spacing)
|
|
||||||
"MD032": false, // blanks-around-lists (flexible spacing)
|
|
||||||
"MD035": false, // hr-style (consistent)
|
|
||||||
"MD036": false, // no-emphasis-as-heading
|
|
||||||
"MD044": false, // proper-names
|
|
||||||
"MD060": true // table-column-style (enforce proper table formatting)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Documentation patterns
|
// Ignore patterns
|
||||||
"globs": [
|
|
||||||
"*.md",
|
|
||||||
"docs/**/*.md",
|
|
||||||
"!docs/node_modules/**",
|
|
||||||
"!docs/build/**"
|
|
||||||
],
|
|
||||||
|
|
||||||
// Ignore build artifacts, external content, and operational directories
|
|
||||||
"ignores": [
|
"ignores": [
|
||||||
"node_modules/**",
|
"node_modules/**",
|
||||||
"target/**",
|
"target/**",
|
||||||
|
|||||||
@ -96,7 +96,7 @@ repos:
|
|||||||
entry: markdownlint-cli2
|
entry: markdownlint-cli2
|
||||||
language: system
|
language: system
|
||||||
types: [markdown]
|
types: [markdown]
|
||||||
stages: [commit]
|
stages: [pre-commit]
|
||||||
|
|
||||||
- id: check-malformed-fences
|
- id: check-malformed-fences
|
||||||
name: Check malformed closing fences
|
name: Check malformed closing fences
|
||||||
@ -104,7 +104,7 @@ repos:
|
|||||||
language: system
|
language: system
|
||||||
types: [markdown]
|
types: [markdown]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
stages: [commit]
|
stages: [pre-commit]
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
# General Pre-commit Hooks
|
# General Pre-commit Hooks
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user