|
| 1 | +# |
| 2 | +# Configuration file for MarkdownLint-CLI2. |
| 3 | +# |
| 4 | +# Example file with all options: |
| 5 | +# https://github.com/DavidAnson/markdownlint-cli2/blob/main/test/markdownlint-cli2-yaml-example/.markdownlint-cli2.yaml |
| 6 | +# Example file with all rules: |
| 7 | +# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml |
| 8 | +# |
| 9 | + |
| 10 | +# Define glob expressions to use (only valid at root). |
| 11 | +globs: |
| 12 | + - "**/*.md" |
| 13 | + - ".github/**/*.md" |
| 14 | + |
| 15 | +# Show found files on stdout (only valid at root) |
| 16 | +showFound: true |
| 17 | + |
| 18 | +# Define glob expressions to ignore. |
| 19 | +ignores: |
| 20 | + - "node_modules/" |
| 21 | + - "vendor/" |
| 22 | + |
| 23 | +# Disable inline config comments. |
| 24 | +noInlineConfig: true |
| 25 | + |
| 26 | +# Disable progress on stdout (only valid at root). |
| 27 | +noProgress: false |
| 28 | + |
| 29 | +# Adjust the configuration for some built-in rules. |
| 30 | +# For full information on the options and defaults, see: |
| 31 | +# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md |
| 32 | +config: |
| 33 | + ###################### |
| 34 | + # Disable a few rules. |
| 35 | + ###################### |
| 36 | + # MD031/blanks-around-fences - Fenced code blocks should be surrounded by blank lines. |
| 37 | + MD031: false |
| 38 | + # MD032/blanks-around-lists - Lists should be surrounded by blank lines. |
| 39 | + MD032: false |
| 40 | + |
| 41 | + ############################## |
| 42 | + # Customize a few other rules. |
| 43 | + ############################## |
| 44 | + # MD003/heading-style/header-style - Heading style. |
| 45 | + MD003: |
| 46 | + # Heading style - Always use hashes. |
| 47 | + style: "atx" |
| 48 | + |
| 49 | + # MD007/ul-indent - Unordered list indentation. |
| 50 | + MD007: |
| 51 | + indent: 4 |
| 52 | + # Whether to indent the first level of the list. |
| 53 | + start_indented: false |
| 54 | + |
| 55 | + # MD012/no-multiple-blanks - Multiple consecutive blank lines. |
| 56 | + MD012: |
| 57 | + maximum: 2 |
| 58 | + |
| 59 | + # MD013/line-length - Line length. |
| 60 | + MD013: |
| 61 | + # Number of characters. No need for being too fussy. |
| 62 | + line_length: 1000 |
| 63 | + # Number of characters for headings. |
| 64 | + heading_line_length: 100 |
| 65 | + # Number of characters for code blocks. |
| 66 | + code_block_line_length: 100 |
| 67 | + # Stern length checking (applies to tables, code blocks etc which have their own max line length). |
| 68 | + stern: true |
| 69 | + |
| 70 | + # MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md022.md |
| 71 | + MD022: |
| 72 | + # Blank lines above heading |
| 73 | + lines_above: [2, 1, 1, 1, 1] |
| 74 | + # Blank lines below heading |
| 75 | + lines_below: [1, 1, -1, -1, -1] |
| 76 | + |
| 77 | + # MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content. |
| 78 | + MD024: |
| 79 | + # Only check sibling headings. |
| 80 | + siblings_only: true |
| 81 | + |
| 82 | + # MD033/no-inline-html - Inline HTML. |
| 83 | + MD033: |
| 84 | + # Allowed elements. |
| 85 | + allowed_elements: |
| 86 | + - div |
| 87 | + |
| 88 | + # MD044/proper-names - Proper names should have the correct capitalization. |
| 89 | + MD044: |
| 90 | + # List of proper names. |
| 91 | + names: ["PHP", "PHP_CodeSniffer", "CodeSniffer", "PHPUnit", "Xdebug"] |
| 92 | + # Include code blocks. |
| 93 | + code_blocks: false |
| 94 | + |
| 95 | + # MD046/code-block-style - Code block style |
| 96 | + MD046: |
| 97 | + style: "fenced" |
| 98 | + |
| 99 | + # MD048/code-fence-style - Code fence style |
| 100 | + MD048: |
| 101 | + style: "backtick" |
| 102 | + |
| 103 | + # MD049/emphasis-style - Emphasis style should be consistent |
| 104 | + MD049: |
| 105 | + style: "underscore" |
| 106 | + |
| 107 | + # MD050/strong-style - Strong style should be consistent |
| 108 | + MD050: |
| 109 | + style: "asterisk" |
0 commit comments