microsoft / microsoft/TypeScript
Add JSON schema to the `typescript` package for `tsconfig.json` and `jsconfig.json`
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Suggestion
🔍 Search Terms
- JSON schema
- SchemaStore
tsconfig.jsonjsconfig.json
✅ Viability Checklist
N/A
📃 Why
I noticed that Rome doesn't use a traditional hosted JSON schema and instead they publish their JSON schema in their package so that it can then be referenced with a local path:
{
"$schema": "./node_modules/rome/configuration_schema.json",
}
I see three advantages to this approach...
- The JSON schema will match the installed version of the package.
- The JSON schema will work without internet access, provided that node_modules has been installed.
- Any changes to the JSON schema in the development can be used straight away in examples, etc.
⭐ Suggestion
Maintain the JSON schema in this repository, instead of the the SchemaStore repository. It will be kept in sync with new TypeScript releases. Finally, publish the JSON schemas in the typescript package.
You can still leave the hosted JSON schema as an option, which will always resolve to the JSON schemas for the latest version of TypeScript. This will still be needed for editor autocomplete, whereby the schema is not specified in the JSON, but detected from the name of the file.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、TypeScript パッケージがどのように組み立てられ、公開されているかを調査し、次に tsconfig.json と jsconfig.json の設定定義がどこで管理されているかを特定します。パッケージ内に配置する望ましいスキーマを既存の SchemaStore アプローチと比較し、スキーマがリリースと同期された状態を保ち、公開パッケージに含まれていることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- json, typescript
- 領域
- developer-experience, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100