prettier / prettier/plugin-php
Configuration ignored when defined in multiple sources
まだ誰も着手していません。
- 主要言語
- PHP
- スター
- 1.9k
- フォーク
- 139
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi.
The plugin configuration is ignored when it is defined in multiple sources. For example, I set the next two config values in .prettierrc
"braceStyle": "1tbs",
"singleQuote": true
but the plugin reports the following Resolved config:
{
"parser": "php",
"phpVersion": "7.4",
"plugins": [
"@prettier/plugin-php"
]
}
Then, I noticed I also had some "prettier": {...} configuration in package.json. The new configuration was still ignored after I added the same two config values to the Prettier property in this file. At this point, both configuration sources are the same.
Finally, the new configuration was in effect after I deleted the .prettierrc file.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
.prettierrc と package.json の "prettier" プロパティの両方を使って設定を再現することから始め、次に .prettierrc を削除した場合と比較します。これら 2 つのソースがどのように解決されるかを追跡し、両方のソースで定義されている場合に braceStyle と singleQuote が保持されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 64/100