vweevers / hallmark

Markdown Style Guide, with linter and automatic fixer.
GNU General Public License v3.0
35 stars 3 forks source link

Restore previous repo behavior of remark-validate-links #32

Closed vweevers closed 5 years ago

vweevers commented 5 years ago

Since 9.0.0, remark-validate-links tries to get the repo url from git remotes (which is not desirable for forks) rather than the package.json. Hallmark now reads package.json itself and passes the repo url to remark-validate-links.

I also inlined some code for finding & reading the package.json so that this doesn't have to be done 3 times over (by pkg-config, deglob and for getting the repo url).