eslint / archive-website

The ESLint website
https://eslint.org
MIT License
95 stars 244 forks source link

Difficulty in finding Eslint plugin rules #480

Open jankhunter opened 6 years ago

jankhunter commented 6 years ago

Recently, i faced difficulty in finding existing eslint rules. I would search for any existing rule here . I nearly completed writing my own custom rule but later found that there is an existing rule exactly for my case, which i dint find here . It would be nice, if there is a space also for non-core plugin rules in eslint.org

aladdin-add commented 6 years ago

It's hard to list all rules -- there are many eslint plugins maintained by the community. I would recommend some repos like https://github.com/dustinspecker/awesome-eslint.

platinumazure commented 6 years ago

Disclosure: I recommended that this issue be created.

I wanted to have this issue so we could discuss what meaningful changes we could do to improve the plugin/custom rule discovery experience.

If awesome-eslint is highly useful for this, it might be good to link to it somewhere (including on the rules pages).

That said, I also wonder if there might be an API we could use for searching the npm registry, which could allow users to do their own plugin searching on our website. If we could somehow integrate that into algolia, that would be super awesome but probably really difficult and maybe overkill.

jankhunter commented 6 years ago

To be precise, if some plugin is useful, why not maintain a space for it or as @platinumazure said, search results would be well and good rather than maintaining the exact plugin in eslint.org

platinumazure commented 6 years ago

I definitely don't want to maintain a space for it, in terms of us having to maintain a database or something. We do not have the manpower for that.

What I would love to see is, if there is some API or service that can be used to query npmjs.org, then maybe we could create a search page that will allow users to type in some searches and find ESLint plugins (e.g., we could search by "eslintplugin" tag plus whatever else the user has typed in). That could (hopefully) be maintained at minimum cost, without us actually having to be aware of the ecosystem.