sindresorhus / awesome-lint

Linter for Awesome lists
MIT License
600 stars 56 forks source link

add more flexibility to hyphen separated check; explicit em-dash check #185

Closed WillForan closed 8 months ago

WillForan commented 8 months ago

test to confirm #146 and #49 are resolved (though I think at least 146 was already making it through without getting flagged)

The big kludge in this pull request is allowing description text matching " - " to pass through instead of getting hit with "link and description must be separated with a dash."

I also un-commented the TODO list-items fixture that had want-to-be valid image-before-link entries. They had em-dash separators instead of standard hyphens. I updated lint message to complain about that in addition to en-dashes.

Fixes #146 Fixes #49