Skip to content

Conversation

@lumirlumir
Copy link
Member

@lumirlumir lumirlumir commented Jun 18, 2025

Prerequisites checklist

What is the purpose of this pull request?

Hello,

In this PR, I’ve added uniqueItems: true to the JSON schema of prefer-logical-properties.

Currently, users can pass duplicate properties like this:

image

However, considering the purpose of the option, I think it makes more sense to allow only unique items.

What changes did you make? (Give an overview)

I’ve added uniqueItems: true to the JSON schema of prefer-logical-properties.

Related Issues

Nothing.

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

Nothing.

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Jun 18, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jun 18, 2025
@lumirlumir lumirlumir changed the title fix: Enforce unique items in the options of prefer-logical-properties fix: enforce unique items in the options of prefer-logical-properties Jun 18, 2025
@lumirlumir lumirlumir requested a review from a team June 19, 2025 09:16
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@nzakas nzakas merged commit b720cf8 into main Jun 19, 2025
22 checks passed
@nzakas nzakas deleted the fix-enforce-unique-items-in-the-options-of-prefer-logical-properties branch June 19, 2025 15:02
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants