Skip to content

feat(linter/unicorn): implement no-duplicate-set-values rule#24737

Open
BTF-Kabir-2020 wants to merge 1 commit into
oxc-project:mainfrom
BTF-Kabir-2020:feat/unicorn-no-duplicate-set-values
Open

feat(linter/unicorn): implement no-duplicate-set-values rule#24737
BTF-Kabir-2020 wants to merge 1 commit into
oxc-project:mainfrom
BTF-Kabir-2020:feat/unicorn-no-duplicate-set-values

Conversation

@BTF-Kabir-2020

@BTF-Kabir-2020 BTF-Kabir-2020 commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Implements unicorn/no-duplicate-set-values for #684.

Reports duplicate values in new Set([ ... ]) array literals (static values, same references, SameValueZero for numbers). Does not match globalThis.Set or distinct object/array literals.

Test plan

  • cargo test -p oxc_linter --lib rules::unicorn::no_duplicate_set_values::test
  • CI

Part of #684

@BTF-Kabir-2020
BTF-Kabir-2020 requested a review from camc314 as a code owner July 21, 2026 02:10
@camc314 camc314 added the A-linter Area - Linter label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants