awesome-lint
awesome-lint copied to clipboard
Meta
This issue is meant for general feedback and brainstorming. Continuation of https://github.com/sindresorhus/awesome/issues/569.
The intention of this linter is to make it easier to create and maintain an Awesome list.
I've opened individual issues for some rules I'd like to see. Help wanted implementing them.
There's currently only one Awesome specific rule, but I've enabled many built-in remark-lint
rules.
Can your awesome-nodejs
be used as a "this is correct"?
(Note: list-item.md
=== awesome-nodejs's readme.md)
@matheuss Yes
What about 'is link still alive' validation?
At first this idea seemed like a good one to me with some obvious pros. But after some time maintaining awesome-cryptography
I have faced that many resources just die from time to time and then come back to life. Sometimes it is lucky enough to fit into this downtime, so the travis
build fails leaving the contributor confused.
I had an idea about adding extra setting to remark-lint-are-links-valid
to just print warnings.
What do you think?
I think we could detect non-200 HTTP responses using an HTTP client (not sure what the performance implications of this are) and put it up as a warning but it'd be impossible to detect a site's 404 page for a blog post or article, right?
@matheuss @sotojuan I tried the are-links-valid
rule, but it was way too slow and unreliable: https://github.com/sindresorhus/awesome-lint/blob/278fdb89a7224f37682b2897f1fb3a62f84a0746/config.js#L72
I use deduplication (in my case trough npp, see https://stackoverflow.com/a/3958364/141243 ) to comment on a pr, like this: https://github.com/sindresorhus/awesome/pull/1228#issuecomment-409850235 or should I leave everything in?
Also checking for the readme anchor could be added (i added it myself in above example)
ping @transitive-bullshit
Thanks for following up @Jogai -- this is great feedback.
In general, the status of awesome-lint
and how it should be used in awesome
is up in the air, but we're hopefully closing in on some modified guidelines that'll be updated soon.
@transitive-bullshit We really need a lint rule for detecting broken links and redirects, but something better than remark-lint-are-links-valid
.
@sindresorhus author of remark-lint-are-links-valid
here.
- What is bothering you with this library?
- What can be improved?
- Do you want to collaborate to make it better?
I am quite happy with it in awesome-cryptography
. But, that's actually the only place where I use it, so I may miss a lot of potential bugs/inconveniences/etc.
Please, feel free to move this discussion into our issues.
I think the following check should be changed from:
[require('remark-lint-heading-style'), 'atx']
to
[require('remark-lint-heading-style'), 'consistent']
Per the rules outlined here
Has consistent formatting and proper spelling/grammar.
Rationale
- There is no mention in the rules about
atx
heading style. - The syntax used doesn't change the rendering of awesome lists.
- Enforcing a particular heading syntax creates little value at the cost of increasing the formatting requirements for those creating awesome lists.
Ping @sindresorhus