Add rule MD059/descriptive-link-text "Link text should be descriptive" (fixes #681).

This commit is contained in:
Kate Higa 2025-01-06 11:35:17 -05:00 committed by David Anson
parent 4117394250
commit b8374ec5d2
40 changed files with 1159 additions and 234 deletions

View file

@ -1100,6 +1100,28 @@ export interface ConfigurationStrict {
* MD058/blanks-around-tables : Tables should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md058.md
*/
"blanks-around-tables"?: boolean;
/**
* MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md059.md
*/
MD059?:
| boolean
| {
/**
* List of restricted link texts
*/
link_texts?: string[];
};
/**
* MD059/descriptive-link-text : Link text should be descriptive : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md059.md
*/
"descriptive-link-text"?:
| boolean
| {
/**
* List of restricted link texts
*/
link_texts?: string[];
};
/**
* headings : MD001, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043
*/
@ -1125,7 +1147,7 @@ export interface ConfigurationStrict {
*/
hard_tab?: boolean;
/**
* links : MD011, MD034, MD039, MD042, MD051, MD052, MD053, MD054
* links : MD011, MD034, MD039, MD042, MD051, MD052, MD053, MD054, MD059
*/
links?: boolean;
/**
@ -1185,7 +1207,7 @@ export interface ConfigurationStrict {
*/
spelling?: boolean;
/**
* accessibility : MD045
* accessibility : MD045, MD059
*/
accessibility?: boolean;
/**