Skip to content

Commit

Permalink
chore: snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Sep 2, 2024
1 parent 699cb0a commit 5aa920c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
"body": "<!-- markdownlint-enable-file ${1:MD000 }-->",
"description": "Enables one or more rules by name (MD013), alias (line-length), or tag (whitespace). Multiple rules are space-delimited (MD018 MD019). If no rules are specified, all rules are enabled. Applies to the entire file."
},
"insertMarkdownLintDisableLineComment": {
"prefix": "markdownlint-disable-line",
"body": "<!-- markdownlint-disable-line ${1:MD000 }-->",
"description": "Disables one or more rules by name (MD013), alias (line-length), or tag (whitespace). Multiple rules are space-delimited (MD018 MD019). If no rules are specified, all rules are disabled. Applies to the current line only."
},
"insertMarkdownLintDisableNextLineComment": {
"prefix": "markdownlint-disable-next-line",
"body": "<!-- markdownlint-disable-next-line ${1:MD000 }-->",
"description": "Disables one or more rules by name (MD013), alias (line-length), or tag (whitespace). Multiple rules are space-delimited (MD018 MD019). If no rules are specified, all rules are disabled. Applies to the next line only."
},
"insertMarkdownLintCaptureComment": {
"prefix": "markdownlint-capture",
"body": "<!-- markdownlint-capture -->",
Expand All @@ -28,5 +38,10 @@
"prefix": "markdownlint-restore",
"body": "<!-- markdownlint-restore -->",
"description": "Restores the most recently captured rule configuration. Defaults to the document's initial configuration. Takes effect starting with the line the comment is on."
},
"insertMarkdownLintConfigureFileComment": {
"prefix": "markdownlint-configure-file",
"body": "<!-- markdownlint-configure-file { ${1:\"MD013\": { \"line_length\": 100 \\}} } -->",
"description": "Configures one or more rules by name (MD013), alias (line-length), or tag (whitespace) using the same JSON format as the \"markdownlint.config\" object. Applies to the entire file."
}
}

0 comments on commit 5aa920c

Please sign in to comment.