theoludwig / markdownlint-rule-relative-links

Custom rule for markdownlint to validate relative links.
https://www.npmjs.com/package/markdownlint-rule-relative-links
MIT License
8 stars 1 forks source link

[Improvement] Rewrite in TypeScript #9

Open theoludwig opened 4 months ago

theoludwig commented 4 months ago

Type of Improvement

Refactoring code

Proposal

Rewrite the code in TypeScript. The project wasn't started as TypeScript, as markdownlint types was light and often incorrect, but this changed, and greatly improved. As the types improved, and are now "good", we use TypeScript to lint the JSDOC since this commit: https://github.com/theoludwig/markdownlint-rule-relative-links/commit/1ddcdc7b188116ad286fba68de90c7ce9860410c.

As we're already using TypeScript, but to lint JavaScript, it makes sense, to instead directly use TypeScript syntax.