🐞[BUG] - keep-sorted doesn't copy emojis correctly

Open
#26 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
eslint, typescript
Domain
tooling

Research direction

Start with the linked minimal reproduction and trace the keep-sorted processing path in this repository. Reproduce the issue with the provided emoji example, then add coverage for the observed behavior and verify that the sorted output preserves the emoji characters.

Written by the indexing model from the issue text.

Description

help wanted
Describe the bug

keep-sorted doesn't copy emojis correctly

From Code

const example = {
   apple: "🍏",
   orange: "🍊",
   banana: "🍌",
};

Results

image
Reproduction

https://github.com/INeedJobToStartWork/problem-repro2

System Info
System:
    OS: Windows 11 10.0.22000
    CPU: (40) x64 Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
    Memory: 16.17 GB / 31.85 GB
  Binaries:
    Node: 21.7.3 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.6.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22000.120
Used Package Manager

pnpm

Validations
  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Contributions
  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Dominant language
TypeScript
Stars
372
Forks
18
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from antfu/eslint-plugin-command

All issues in antfu/eslint-plugin-command

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.