mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update new rule MD059/descriptive-link-text for project-level consistency.
This commit is contained in:
parent
b8374ec5d2
commit
571c2353ea
23 changed files with 466 additions and 383 deletions
|
@ -310,7 +310,12 @@
|
|||
|
||||
// MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md059.md
|
||||
"MD059": {
|
||||
// List of restricted link texts
|
||||
"link_texts": []
|
||||
// Prohibited link texts
|
||||
"prohibited_texts": [
|
||||
"click here",
|
||||
"here",
|
||||
"link",
|
||||
"more"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -278,5 +278,9 @@ MD058: true
|
|||
|
||||
# MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md059.md
|
||||
MD059:
|
||||
# List of restricted link texts
|
||||
link_texts: []
|
||||
# Prohibited link texts
|
||||
prohibited_texts:
|
||||
- "click here"
|
||||
- "here"
|
||||
- "link"
|
||||
- "more"
|
||||
|
|
|
@ -558,13 +558,18 @@ for (const rule of rules) {
|
|||
break;
|
||||
case "MD059":
|
||||
scheme.properties = {
|
||||
"link_texts": {
|
||||
"description": "List of restricted link texts",
|
||||
"prohibited_texts": {
|
||||
"description": "Prohibited link texts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
"default": [
|
||||
"click here",
|
||||
"here",
|
||||
"link",
|
||||
"more"
|
||||
]
|
||||
}
|
||||
};
|
||||
break;
|
||||
|
|
|
@ -1724,13 +1724,18 @@
|
|||
],
|
||||
"default": true,
|
||||
"properties": {
|
||||
"link_texts": {
|
||||
"description": "List of restricted link texts",
|
||||
"prohibited_texts": {
|
||||
"description": "Prohibited link texts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
"default": [
|
||||
"click here",
|
||||
"here",
|
||||
"link",
|
||||
"more"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
@ -1743,13 +1748,18 @@
|
|||
],
|
||||
"default": true,
|
||||
"properties": {
|
||||
"link_texts": {
|
||||
"description": "List of restricted link texts",
|
||||
"prohibited_texts": {
|
||||
"description": "Prohibited link texts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
"default": [
|
||||
"click here",
|
||||
"here",
|
||||
"link",
|
||||
"more"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
|
|
@ -1724,13 +1724,18 @@
|
|||
],
|
||||
"default": true,
|
||||
"properties": {
|
||||
"link_texts": {
|
||||
"description": "List of restricted link texts",
|
||||
"prohibited_texts": {
|
||||
"description": "Prohibited link texts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
"default": [
|
||||
"click here",
|
||||
"here",
|
||||
"link",
|
||||
"more"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
@ -1743,13 +1748,18 @@
|
|||
],
|
||||
"default": true,
|
||||
"properties": {
|
||||
"link_texts": {
|
||||
"description": "List of restricted link texts",
|
||||
"prohibited_texts": {
|
||||
"description": "Prohibited link texts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
"default": [
|
||||
"click here",
|
||||
"here",
|
||||
"link",
|
||||
"more"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue