Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

No guidance (nor build infrastructure) to note when rule options are added in specific versions of ESLint #485

Open
@platinumazure

Description

Prelude

I'm aware that we don't specifically want to be strict about noting when rule options are added or changed in particular release versions. I am not advocating that we try to retrofit the entire site with version information. What I want to do is to make individual updates/notes possible (while providing a uniform UX).

Proposal

I would love to see some options for prefixing a paragraph/list option with a "new in version x" icon/text, in such a way that it's uniform across the site. This could simply be text conventions, or it could be something that would get replaced with an icon or otherwise styled during site generation.

The purpose of this would be to allow the team or the community to respond to user confusion when an issue comes in for an option that "does not yet exist" on the rule in the version the user is using. The team or community could add this information only in the place it was needed, without feeling obligated to try to document the ESLint version added for every rule option ever.

Progressing Further

It could be nice to have an option for developers of new features to include a "new in this version" tag/icon/text/whatever, which would transform into "new in version x" during site generation during release. This would allow contributors to note new functionality without making assumptions about what ESLint version will contain the new documentation.

Definitely out of scope for initial implementation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    documentationRelates to ESLint's documentationenhancementThis change enhances an existing feature of the website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions