-
Notifications
You must be signed in to change notification settings - Fork 3
Markdownlint Showcase #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"outputFormatters": [["markdownlint-cli2-formatter-json"]], | ||
"config": { | ||
"default": true, | ||
"MD001": true, | ||
"MD002": true, | ||
"MD022": true, | ||
"MD031": true | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: test | ||
version: 1.0 | ||
items: | ||
- id: 1 | ||
name: Item One | ||
- id: 2 | ||
name: Item Two | ||
- id: 3 | ||
name: Item Three | ||
Comment on lines
+4
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Normalise list indentation Each list item should start at the same column. Current mixture of 2- and 3-space indents violates MD007. -items:
- - id: 1
- name: Item One
- - id: 2
- name: Item Two
- - id: 3
- name: Item Three
+items:
+ - id: 1
+ name: Item One
+ - id: 2
+ name: Item Two
+ - id: 3
+ name: Item Three
🧰 Tools🪛 LanguageTool[grammar] ~6-~6: Ensure spelling is correct (QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1) 🪛 markdownlint-cli2 (0.17.2)4-4: Unordered list indentation (MD007, ul-indent) 6-6: Unordered list indentation (MD007, ul-indent) 8-8: Unordered list indentation (MD007, ul-indent) 🤖 Prompt for AI Agents
|
||
... trailing dot | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Disable the global default before whitelisting specific rules
"default": true
turns on every rule, then the explicit list immediately re-enables them again.If you want to lint with only MD001/2/22/31, flip the flag to
false
(or drop it entirely and let the explicit mapping drive the set). This avoids surprises when markdownlint introduces new rules.📝 Committable suggestion
🤖 Prompt for AI Agents