Closed paulirish closed 5 years ago
:+1: Would be nice to just be able to tell people to add a Travis check. Very few follow the guidelines and I do a lot of manual job commenting on that.
The only prior art I know of is an awesome bot (see https://github.com/sindresorhus/awesome/pull/478), but it only checks for outdated links, so not very useful.
@wooorm Does something like this exist in the retext/remark ecosystem?
Hi Sindre, Paul, great idea!
I believe remark, the markdown processor, could help here. Probably though its lint plugin, which checks patterns in markdown and triggers warnings. It checks for several possible style violations (e.g., emphasis markers, *
or _
), which each can be configured, turned on, or turned off. And, it supports external rules, for example: vhf/remark-lint-alphabetize-lists
, which ensures lists are sorted properly.
Which brings me to a similar project, vhf/free-programming-books-lint
, which implemented the aforementioned rule. This project wraps remark and remark-lint and enforces the free-programming-book style in their .travis.yml
file.
P.S. also interesting: remark-validate-links
Maybe remark-toc
, or of course one of the non-remark plugins if you want more control.
Nothing good so far. I investigated this but there’s no good solution to implement this in a Travis task, yet. I’m half-way with n-spell, plain-JavaScript (Hunspell) spelling, which will make this possible. But I got bored...
Hope this helps!
When creating awesome-cryptography
, I was in doubt with how to enforce the style-consistency. Thanks for @wooorm for his awesome remark-lint
.
My solutions was:
remark-lint
remark-lint-alphabetize-lists
remark-lint-are-links-valid
remark-lint-list-item-punctuation
Here's the setup: package.json
I've started work on an official Awesome linter. ✨
I could use some feedback and help → https://github.com/sindresorhus/awesome-lint/issues/3
In the manifesto there are a few suggestions and requirements. For example..
style
build
Have any list maintainers written some scripts to either lint for style issues? Also interested in boring build scripts to automate TOC generation with DocToc, etc.