MDS016: list-indent
List items must use consistent indentation.
# Settings
| Setting | Type | Default | Description |
|---|---|---|---|
spaces | int | 2 | Number of spaces per indentation level |
# Config
Enable (default):
rules:
list-indent:
spaces: 2Disable:
rules:
list-indent: falseCustom (4-space list indent):
rules:
list-indent:
spaces: 4# Examples
# Bad (when spaces is 2)
# Title
- item one
- nested item4-space indent when configured for 4 spaces:
# Title
- item one
- nested item# Good (when spaces is 2)
# Title
- item one
- nested item4-space indent when configured for 4 spaces:
# Title
- item one
- nested item