mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD010/no-hard-tabs to add ignore_code_languages parameter (fixes #383).
This commit is contained in:
parent
0f845e9ba1
commit
b447c809bd
9 changed files with 112 additions and 3 deletions
|
|
@ -58,6 +58,8 @@
|
|||
"MD010": {
|
||||
// Include code blocks
|
||||
"code_blocks": true,
|
||||
// Fenced code languages to ignore
|
||||
"ignore_code_languages": [],
|
||||
// Number of spaces for each hard tab
|
||||
"spaces_per_tab": 1
|
||||
},
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@ MD009:
|
|||
MD010:
|
||||
# Include code blocks
|
||||
code_blocks: true
|
||||
# Fenced code languages to ignore
|
||||
ignore_code_languages: []
|
||||
# Number of spaces for each hard tab
|
||||
spaces_per_tab: 1
|
||||
|
||||
|
|
|
|||
|
|
@ -147,6 +147,14 @@ rules.forEach(function forRule(rule) {
|
|||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"ignore_code_languages": {
|
||||
"description": "Fenced code languages to ignore",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"spaces_per_tab": {
|
||||
"description": "Number of spaces for each hard tab",
|
||||
"type": "integer",
|
||||
|
|
|
|||
|
|
@ -201,6 +201,14 @@
|
|||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"ignore_code_languages": {
|
||||
"description": "Fenced code languages to ignore",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"spaces_per_tab": {
|
||||
"description": "Number of spaces for each hard tab",
|
||||
"type": "integer",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue