`keep-sorted` for subset of object keys

オープン
#23 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
tooling

調査の方向性

まず、リポジトリ内で keep-sorted の処理を特定し、オブジェクトの例とコマンド/コマンドパスを使って報告されたエラーを再現します。完了の条件は、keep-sorted コメントをオブジェクトキーの 1 つのグループに独立して適用でき、他のグループは分離されたまま、見つけられないエラーが発生しないことです。

索引モデルが issue の本文から書いたものです。

説明

enhancement
Clear and concise description of the problem

For example, suppose you have:

const object = {
  // Group of entries
  b: true,
  c: true,
  a: true,

  // Other group of entries
  z: true,
  x: true,
  y: true,
}

It would be nice if I could add keep-sorted above a group of entries to sort them separately. Right now adding the comment above one of the groups results in:

[keep-sorted] error: Unable to find object/array/interface to sort  command/command
Suggested solution

Allow keep-sorted above a group of entries

Alternative

No response

Additional context

No response

Validations
主要言語
TypeScript
スター
372
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

antfu/eslint-plugin-command のほかの issue

antfu/eslint-plugin-command の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。