Update new rule MD059/descriptive-link-text for project-level consistency.

This commit is contained in:
David Anson 2025-02-13 22:07:27 -08:00
parent b8374ec5d2
commit 571c2353ea
23 changed files with 466 additions and 383 deletions

View file

@ -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"
]
}
}

View file

@ -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"

View file

@ -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;

View file

@ -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

View file

@ -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