Skip to content

fix: recognize nesting feature detection in use-baseline - #531

Open
Pixel998 wants to merge 1 commit into
mainfrom
fix/use-baseline-nesting-supports
Open

fix: recognize nesting feature detection in use-baseline#531
Pixel998 wants to merge 1 commit into
mainfrom
fix/use-baseline-nesting-supports

Conversation

@Pixel998

Copy link
Copy Markdown
Contributor

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What did you do?

/* eslint css/use-baseline: ["error", { available: 2022 }] */

@supports selector(&) {
  /* nesting parsing available */
}

What did you expect to happen?

No lint error, because selector(&) is a nesting feature-detection query.

What actually happened?

use-baseline reported:

Selector 'nesting' is not a 2022 available baseline feature.

What is the purpose of this pull request?

This PR fixes use-baseline so nesting feature-detection queries do not report a baseline violation.

What changes did you make? (Give an overview)

  • Map NestingSelector (&) to the nesting selector in selector(...) support queries.
  • Skip nesting baseline reports when nesting is feature-detected.

Related Issues

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Aug 13, 2026
@eslint-github-bot eslint-github-bot Bot added the bug Something isn't working label Aug 13, 2026
@Pixel998 Pixel998 moved this from Needs Triage to Implementing in Triage Aug 13, 2026

@DMartens DMartens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, thanks

@DMartens DMartens moved this from Implementing to Merge Candidates in Triage Aug 14, 2026
@Pixel998 Pixel998 added the accepted There is consensus among the team that this change meets the criteria for inclusion label Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion bug Something isn't working

Projects

Status: Merge Candidates

Development

Successfully merging this pull request may close these issues.

2 participants