Skip to content

Commit

Permalink
feat: Add rule to create more descriptive link texts
Browse files Browse the repository at this point in the history
The more descriptive your link text, the easier it is for people to navigate
your site and for Google to understand what you are linking to.

Practically, this means you should avoid link text like `here`, `this page`, or
`read more`.
  • Loading branch information
nhhagen committed May 30, 2024
1 parent f101d25 commit 1ccae21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Coop/styles/Coop/MeaningfulLinkWords.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: existence
message: "**Error**: Rewrite the link text for `%s` to be more descriptive."
level: error
ignorecase: true
scope: raw
nonword: true
tokens:
- \[here\]\(.*\)
- \[this page\]\(.*\)
- \[read more\]\(.*\)

0 comments on commit 1ccae21

Please sign in to comment.