Skip to content

Change Request: add support for Baseline years to require-baseline #78

@rviscomi

Description

@rviscomi

Environment

Node version: v20.0.0
npm version: v9.6.4
Local ESLint version: v9.21.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 23.6.0

What problem do you want to solve?

In addition to Baseline newly and widely available, features can also be expressed in terms of the year they became newly available. For example, here is the list of features considered Baseline 2023. This can be useful for developers who prefer to set a fixed browser support target that they can periodically reevaluate, rather than a moving target like widely available. However, the require-baseline rule currently only supports two modes: newly or widely available.

What do you think is the correct solution?

I'd like the require-baseline rule to also support Baseline years. So a user can say that they target features released in or before a given year, eg available: 2021, and the rule will not allow any features newer than that.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

Related to #67, because Baseline years are fixed targets, they don't have the same transience issues as tests targeting newly available features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions