Support for prettier plugins

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

メンテナーはふだん 2 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
tailwindcss, typescript

調査の方向性

まず packages/prettier-plugin-liquid と、その原則をまとめた docs/prettier-plugin-liquid/principles/index.md を読みます。現在 formatter が拡張機能をどのように扱っているかを確認し、そのうえで、prettier-plugin-tailwindcss や拡張機能が提供する plugin を含め、plugin サポートが対応すべき範囲を定義します。要求された plugin を使用して Tailwind クラスを並べ替えながら、Liquid のフォーマットを失わないことが完了の条件です。

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

説明

tech debt

Is your feature request related to a problem? Please describe.
Previously we had to format our liquid files with prettier, but with the v2 of the Shopify Liquid extension, we use theme-check to format our liquid files. This will make it impossible to use prettier-plugin-tailwindcss to automatically order our tailwind classes.

Describe the solution you'd like
Make sure we can use prettier plugins, so we can easily extend the theme-check formatter.

Describe alternatives you've considered
Give the option to either use a prettier plugin or the extension (with plugins).

Checklist

  • [ x] I have checked and made sure that the proposal adheres to this plugin's principles

I also opened an issue on the repo of the Shopify Liquid extension.

主要言語
TypeScript
スター
245
フォーク
108
平均マージ
2日 8時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

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

Shopify/theme-tools のほかの issue

Shopify/theme-tools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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