renovatebot/renovate

Replace bare links in `index.ts` files in the `modules/versioning/*/` pattern with good links

Closed

#30,312 opened on Jul 22, 2024

 (4 comments) (1 reaction) (1 assignee)TypeScript (1,916 forks)batch import
help wantedpriority-4-low

Repository metrics

Stars
 (14,066 stars)
PR merge metrics
 (Avg merge 2d 23h) (339 merged PRs in 30d)

Description

Describe the proposed change(s).

Replace bare links in index.ts files in the modules/versioning/*/ pattern with good links.

Bare links are hard to read, and especially bad for screen reader users. Add a descriptive name to each bare link.

Todos

  • Write failing test first
  • Update all urls constants
  • Open PR

Write failing test first

Scope of test: all urls constants in the pattern modules/versioning/*/index.ts.

Condition Test result
Any item in the urls array is not wrapped between []() characters. Fail
All items in the urls array are wrapped between []() characters. Pass

Update all urls constants

Example of a good link, that passes the test:

 export const urls = [ 
   '[Microsoft API versioning guidelines](https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#api-versioning)', 
 ]; 

Open PR

You are ready to open a pull request when the test passes.

Related discussion/issue

I asked about fixing the bare links in this discussion:

  • #29483

Fixing the bare links is part of the work for:

  • #29148

Contributor guide