eslint / archive-website

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

Docs: Add emoji and notice to indicate which rules provide suggestions #859

Closed bmish closed 3 years ago

bmish commented 3 years ago

A number of core ESLint rules can provide automated suggestions. I would like to update the ESLint website (rules list and individual rule docs) to indicate which rules provide these suggestions.

Benefits of this change:

A number of plugins I work on have already added the suggestion emoji/notice to their rules table and individual rule docs:

And in fact, enabling plugins to reliably show the above emoji/notice is one of the reasons why I pushed for requiring rules with suggestions to enable meta.hasSuggestions for us to key off of (https://github.com/eslint/eslint/pull/14573).

nzakas commented 3 years ago

Seems reasonable. FYI, you don’t need to open an issue for this sort of thing. Just opening a PR is fine. The most likely feedback is “can I see a screenshot?” so doing the PR with the change so we can see the deploy preview helps make the case.